Skip to content

Commit

Permalink
extend response queue size x 100.
Browse files Browse the repository at this point in the history
response queue should not drop responses as much as possible.
  • Loading branch information
fujiwara committed Oct 29, 2020
1 parent 5993f85 commit 1449698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func StartSupervisor(conf *config.Config) (Supervisor, error) {
worker := Worker{
id: i,
queue: make(chan Request, wqSize),
respq: make(chan SenderResponse, wqSize),
respq: make(chan SenderResponse, wqSize*100),
wgrp: &sync.WaitGroup{},
sn: SenderNum,
ac: ac,
Expand Down

0 comments on commit 1449698

Please sign in to comment.