Fix incorrect watch cache sizes

This commit is contained in:
Wojciech Tyczynski 2017-02-07 09:44:31 +01:00 committed by deads2k
parent 8dc243803d
commit 3102519e3a
1 changed files with 1 additions and 1 deletions

View File

@ -1125,7 +1125,7 @@ func (e *Store) CompleteWithOptions(options *generic.StoreOptions) error {
if e.Storage == nil {
capacity := DefaultWatchCacheSize
if e.WatchCacheSize != 0 {
capacity = DefaultWatchCacheSize
capacity = e.WatchCacheSize
}
e.Storage, e.DestroyFunc = opts.Decorator(
e.Copier,