Skip to content

Commit

Permalink
fix: adjust events buffer size to 1024
Browse files Browse the repository at this point in the history
Signed-off-by: black-desk <me@black-desk.cn>
  • Loading branch information
black-desk committed Mar 1, 2024
1 parent 12796cb commit 781f118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cgfsmon/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func New(opts ...Opt) (ret *CGroupFSMonitor, err error) {
// github.com/rjeczalik/notify drop events if receiver is too slow.
// https://github.com/rjeczalik/notify/issues/85
// https://github.com/rjeczalik/notify/issues/98
w.eventsIn = make(chan notify.EventInfo, 20)
w.eventsIn = make(chan notify.EventInfo, 1024)

for i := range opts {
w, err = opts[i](w)
Expand Down

0 comments on commit 781f118

Please sign in to comment.