Skip to content

Commit

Permalink
BUGFIX: Fix bug wherein swb would panic if pollingInterval was not pr…
Browse files Browse the repository at this point in the history
…esent in multi-consumer config file.
  • Loading branch information
Cian911 committed Mar 6, 2022
1 parent 6026313 commit 40542bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func registerMultiConsumers() {

pi := viper.GetInt("poll")

if &ws.PollingInterval != nil {
if &ws.PollingInterval != nil && ws.PollingInterval != 0 {
pi = ws.PollingInterval
}

Expand Down

0 comments on commit 40542bb

Please sign in to comment.