Skip to content

Commit 6c61960

Browse files
committed
RFC: Do not notify when for canceled events
1 parent 17835f6 commit 6c61960

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

service/swarmlistener.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ func (l *SwarmListener) processNodeEventCreate(event Event) {
330330
l.NotifyServices(true)
331331
return
332332
case <-ctx.Done():
333-
l.NotifyServices(true)
334333
return
335334
}
336335
}
@@ -359,7 +358,6 @@ func (l *SwarmListener) processNodeEventRemove(event Event) {
359358
l.NotifyServices(true)
360359
return
361360
case <-ctx.Done():
362-
l.NotifyServices(true)
363361
return
364362
}
365363
}

0 commit comments

Comments
 (0)