mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
store: use a larger buffer for eventChan
The event channel for watches can drop events too easily in the case of streaming watches. This increases the buffer to a more useful level.
This commit is contained in:
parent
de024ec844
commit
26160b2154
@ -47,7 +47,7 @@ func (wh *watcherHub) watch(key string, recursive, stream bool, index, storeInde
|
||||
}
|
||||
|
||||
w := &watcher{
|
||||
eventChan: make(chan *Event, 1), // use a buffered channel
|
||||
eventChan: make(chan *Event, 100), // use a buffered channel
|
||||
recursive: recursive,
|
||||
stream: stream,
|
||||
sinceIndex: index,
|
||||
|
Loading…
x
Reference in New Issue
Block a user