Skip to content

Commit e70080e

Browse files
authored
BUG: Events with the same ID will cancel (#13)
With polling, events may not be in chronological order. For each event ID, only one goroutine will be active processing it.
1 parent d829c5b commit e70080e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

service/swarmlistener.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ func NewSwarmListenerFromEnv(
204204
nodeEventChan,
205205
nodeNotificationChan,
206206
notifyDistributor,
207-
NewCancelManager(false),
208-
NewCancelManager(false),
209-
NewCancelManager(false),
210-
NewCancelManager(false),
207+
NewCancelManager(true),
208+
NewCancelManager(true),
209+
NewCancelManager(true),
210+
NewCancelManager(true),
211211
includeNodeInfo,
212212
useDockerServiceEvents,
213213
ignoreKey,

0 commit comments

Comments
 (0)