Merge pull request #41060 from wojtek-t/fix_too_old_watch_errors
Automatic merge from submit-queue (batch tested with PRs 40382, 41060) Fix incorrect watch cache sizes Fix #41013
This commit is contained in:
@@ -1125,7 +1125,7 @@ func (e *Store) CompleteWithOptions(options *generic.StoreOptions) error {
|
|||||||
if e.Storage == nil {
|
if e.Storage == nil {
|
||||||
capacity := DefaultWatchCacheSize
|
capacity := DefaultWatchCacheSize
|
||||||
if e.WatchCacheSize != 0 {
|
if e.WatchCacheSize != 0 {
|
||||||
capacity = DefaultWatchCacheSize
|
capacity = e.WatchCacheSize
|
||||||
}
|
}
|
||||||
e.Storage, e.DestroyFunc = opts.Decorator(
|
e.Storage, e.DestroyFunc = opts.Decorator(
|
||||||
e.Copier,
|
e.Copier,
|
||||||
|
Reference in New Issue
Block a user