mirror of https://github.com/k3s-io/k3s
fix typos
parent
42b01beaca
commit
5faf310544
|
@ -676,7 +676,7 @@ func forgetWatcher(c *Cacher, index int, triggerValue string, triggerSupported b
|
||||||
glog.V(1).Infof("Forcing watcher close due to unresponsiveness: %v", c.objectType.String())
|
glog.V(1).Infof("Forcing watcher close due to unresponsiveness: %v", c.objectType.String())
|
||||||
}
|
}
|
||||||
// It's possible that the watcher is already not in the structure (e.g. in case of
|
// It's possible that the watcher is already not in the structure (e.g. in case of
|
||||||
// simulaneous Stop() and terminateAllWatchers(), but it doesn't break anything.
|
// simultaneous Stop() and terminateAllWatchers(), but it doesn't break anything.
|
||||||
c.watchers.deleteWatcher(index, triggerValue, triggerSupported)
|
c.watchers.deleteWatcher(index, triggerValue, triggerSupported)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -747,7 +747,7 @@ func (lw *cacherListerWatcher) Watch(options metav1.ListOptions) (watch.Interfac
|
||||||
return lw.storage.WatchList(context.TODO(), lw.resourcePrefix, options.ResourceVersion, Everything)
|
return lw.storage.WatchList(context.TODO(), lw.resourcePrefix, options.ResourceVersion, Everything)
|
||||||
}
|
}
|
||||||
|
|
||||||
// cacherWatch implements watch.Interface to return a single error
|
// errWatcher implements watch.Interface to return a single error
|
||||||
type errWatcher struct {
|
type errWatcher struct {
|
||||||
result chan watch.Event
|
result chan watch.Event
|
||||||
}
|
}
|
||||||
|
@ -787,7 +787,7 @@ func (c *errWatcher) Stop() {
|
||||||
// no-op
|
// no-op
|
||||||
}
|
}
|
||||||
|
|
||||||
// cacherWatch implements watch.Interface
|
// cachWatcher implements watch.Interface
|
||||||
type cacheWatcher struct {
|
type cacheWatcher struct {
|
||||||
sync.Mutex
|
sync.Mutex
|
||||||
input chan *watchCacheEvent
|
input chan *watchCacheEvent
|
||||||
|
|
Loading…
Reference in New Issue