Increase broadcast channel capacity

This commit is contained in:
Sammy Libre 2016-08-07 07:07:27 +05:00
parent 31b977f6cc
commit e2bd2c05f6

View File

@ -101,7 +101,7 @@ func (s *StratumServer) handleUnknownRPC(cs *Session, req *JSONRpcReq) *ErrorRep
func (s *StratumServer) broadcastNewJobs() { func (s *StratumServer) broadcastNewJobs() {
log.Printf("Broadcasting new jobs to %v miners", s.miners.Count()) log.Printf("Broadcasting new jobs to %v miners", s.miners.Count())
bcast := make(chan int, 1024) bcast := make(chan int, 1024*16)
n := 0 n := 0
for m := range s.miners.IterBuffered() { for m := range s.miners.IterBuffered() {