Merge pull request #12076 from cfc4n/automated-cherry-pick-of-#11987-upstream-release-3.4

Automated cherry pick of #11987
This commit is contained in:
Gyuho Lee 2020-07-06 13:01:24 -07:00 committed by GitHub
commit 2acdf88406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,9 +30,8 @@ import (
var (
// chanBufLen is the length of the buffered chan
// for sending out watched events.
// TODO: find a good buf value. 1024 is just a random one that
// seems to be reasonable.
chanBufLen = 1024
// See https://github.com/etcd-io/etcd/issues/11906 for more detail.
chanBufLen = 128
// maxWatchersPerSync is the number of watchers to sync in a single batch
maxWatchersPerSync = 512