Skip to content

Commit

Permalink
Initialize the writeMap with a specified size
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Jan 18, 2023
1 parent 89884b0 commit f5f76c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor/base_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func newBaseMonitor(opt Option) baseMonitor {
return baseMonitor{
syncer: syncer,
retry: retry,
writeMap: make(map[string]*writeMessage),
writeMap: make(map[string]*writeMessage, 100),
writeChan: make(chan *writeMessage, 100),
writeNotify: make(chan struct{}, 100),
cronChan: make(chan struct{}, 1),
Expand Down

0 comments on commit f5f76c6

Please sign in to comment.