Skip to content

Commit ea1620f

Browse files
committed
torrentfs/monitor | Double block task channel buffer size
1 parent 25731a9 commit ea1620f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torrentfs/monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func NewMonitor(flag *Config) (m *Monitor, e error) {
121121
terminated: 0,
122122
lastNumber: uint64(0),
123123
dirty: false,
124-
taskCh: make(chan *Block, batch*2),
124+
taskCh: make(chan *Block, batch*4),
125125
}
126126
m.blockCache, _ = lru.New(6)
127127
m.healthPeers, _ = lru.New(50)

0 commit comments

Comments
 (0)