diff options
-rw-r--r-- | internal/feedback/feedback.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/internal/feedback/feedback.go b/internal/feedback/feedback.go index 7501bbf..1446312 100644 --- a/internal/feedback/feedback.go +++ b/internal/feedback/feedback.go @@ -59,11 +59,13 @@ func (fb *Feedback) RunForever(ctx context.Context) { defer ticker.Stop() fb.pullOnce(ctx) - select { - case <-ticker.C: - fb.pullOnce(ctx) - case <-ctx.Done(): - return + for { + select { + case <-ticker.C: + fb.pullOnce(ctx) + case <-ctx.Done(): + return + } } } |