Skip to content

Commit 8c4e388

Browse files
authored
change ConsumeGoroutineNums max value allowed (#1049)
ConsumeGoroutineNums should allow large values to be set, detail see #883 (comment)
1 parent 1d86ea6 commit 8c4e388

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

consumer/push_consumer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,11 +614,11 @@ func (pc *pushConsumer) validate() error {
614614
}
615615
}
616616

617-
if pc.option.ConsumeGoroutineNums < 1 || pc.option.ConsumeGoroutineNums > 1000 {
617+
if pc.option.ConsumeGoroutineNums < 1 || pc.option.ConsumeGoroutineNums > 100000 {
618618
if pc.option.ConsumeGoroutineNums == 0 {
619619
pc.option.ConsumeGoroutineNums = 20
620620
} else {
621-
return errors.New("option.ConsumeGoroutineNums out of range [1, 1000]")
621+
return errors.New("option.ConsumeGoroutineNums out of range [1, 100000]")
622622
}
623623
}
624624
return nil

0 commit comments

Comments
 (0)