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
}
8/+25 2013-09-30Add first API stuff -- SingleExpense and CategoryRené 'Necoro' Neumann2-1/+13 2013-09-30Force python2René 'Necoro' Neumann1-1/+1 2013-09-24More margin at the bottom for expense listingRené 'Necoro' Neumann1-1/+1 2013-09-24Better pie formattingRené 'Necoro' Neumann3-6/+8 2013-09-24Increase width of page to 760pxRené 'Necoro' Neumann3-8/+9 2013-09-16typoRené 'Necoro' Neumann1-1/+1 2013-09-15Fix display of one monthRené 'Necoro' Neumann1-2/+2 2013-09-14Draw pies using highcharts JS-libRené 'Necoro' Neumann5-20/+99