diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 02:19:54 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-05-03 02:19:54 +0200 |
commit | e4c683ece5044cee42b670bf04031429e426eddb (patch) | |
tree | 781013530db54fee7b81a9e33386b2cd4f4a93be /internal/imap/commando.go | |
parent | d131d0dec6a6c7f0af3511bd908cda8a3d910237 (diff) | |
download | feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.tar.gz feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.tar.bz2 feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.zip |
Rename from 'client' to 'cl'
Diffstat (limited to 'internal/imap/commando.go')
-rw-r--r-- | internal/imap/commando.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/imap/commando.go b/internal/imap/commando.go index 348c724..1ba4ed3 100644 --- a/internal/imap/commando.go +++ b/internal/imap/commando.go @@ -40,29 +40,29 @@ func executioner(conn *connection, pipe <-chan execution, done <-chan struct{}) } } -func (client *Client) startCommander() { - if client.commander != nil { +func (cl *Client) startCommander() { + if cl.commander != nil { return } pipe := make(chan execution, maxPipeDepth) done := make(chan struct{}) - client.commander = &commander{client, pipe, done} + cl.commander = &commander{cl, pipe, done} - for _, conn := range client.connections { + for _, conn := range cl.connections { if conn != nil { go executioner(conn, pipe, done) } } } -func (client *Client) stopCommander() { - if client.commander == nil { +func (cl *Client) stopCommander() { + if cl.commander == nil { return } - close(client.commander.done) + close(cl.commander.done) - client.commander = nil + cl.commander = nil } |