Fix incorrect watch cache sizes

This commit is contained in:
Wojciech Tyczynski 2017-02-07 09:44:31 +01:00
parent 9dec47dc28
commit 8985c6ba4f

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,