Skip to content

Commit

Permalink
[ISSUE #640]fix PullInterval unit. (#639)
Browse files Browse the repository at this point in the history
* fix PullInterval unit
  • Loading branch information
tuweizhong authored Apr 14, 2021
1 parent fa21664 commit cccc454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer/push_consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ func (pc *pushConsumer) validate() {
}
}

if pc.option.PullInterval < 0 || pc.option.PullInterval > 65535 {
if pc.option.PullInterval < 0 || pc.option.PullInterval > 65535*time.Millisecond {
rlog.Error("option.PullInterval out of range [0, 65535]", nil)
}

Expand Down

0 comments on commit cccc454

Please sign in to comment.