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/client.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/client.go')
-rw-r--r-- | internal/imap/client.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/imap/client.go b/internal/imap/client.go index 731e35b..783acf6 100644 --- a/internal/imap/client.go +++ b/internal/imap/client.go @@ -23,17 +23,17 @@ type Client struct { nextFreeIndex int } -func (client *Client) Disconnect() { - if client != nil { - client.stopCommander() +func (cl *Client) Disconnect() { + if cl != nil { + cl.stopCommander() connected := false - for _, conn := range client.connections { + for _, conn := range cl.connections { connected = conn.disconnect() || connected } if connected { - log.Print("Disconnected from ", client.host) + log.Print("Disconnected from ", cl.host) } } } |