mirror of
https://github.com/kvazar-network/keva-stratum.git
synced 2025-01-27 15:24:13 +00:00
Increase broadcast channel capacity
This commit is contained in:
parent
31b977f6cc
commit
e2bd2c05f6
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user