aboutsummaryrefslogtreecommitdiff
path: root/internal/imap/commando.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-03 02:19:54 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-03 02:19:54 +0200
commite4c683ece5044cee42b670bf04031429e426eddb (patch)
tree781013530db54fee7b81a9e33386b2cd4f4a93be /internal/imap/commando.go
parentd131d0dec6a6c7f0af3511bd908cda8a3d910237 (diff)
downloadfeed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.tar.gz
feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.tar.bz2
feed2imap-go-e4c683ece5044cee42b670bf04031429e426eddb.zip
Rename from 'client' to 'cl'
Diffstat (limited to '')
-rw-r--r--internal/imap/commando.go16
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
}