change break to return
@@ -104,7 +104,7 @@ var subscribeCmd = &cobra.Command{
logger.Printf("polling address '%s'", addr)
polledSubsChan[addr] <- struct{}{}
case <-ctx.Done():
- break
+ return
}
}
}()
