Skip to content

Commit cccc454

Browse files
authored
[ISSUE apache#640]fix PullInterval unit. (apache#639)
* fix PullInterval unit
1 parent fa21664 commit cccc454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

consumer/push_consumer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ func (pc *pushConsumer) validate() {
492492
}
493493
}
494494

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

0 commit comments

Comments
 (0)