typofix - https://github.com/vlajos/misspell_fixer
This commit is contained in:
@@ -476,7 +476,7 @@ func (h *etcdHelper) getFromCache(index uint64) (runtime.Object, bool) {
|
||||
}()
|
||||
obj, found := h.cache.Get(index)
|
||||
if found {
|
||||
// We should not return the object itself to avoid poluting the cache if someone
|
||||
// We should not return the object itself to avoid polluting the cache if someone
|
||||
// modifies returned values.
|
||||
objCopy, err := h.copier.Copy(obj.(runtime.Object))
|
||||
if err != nil {
|
||||
|
@@ -34,7 +34,7 @@ func IsEtcdNotFound(err error) bool {
|
||||
return isEtcdErrorNum(err, tools.EtcdErrorCodeNotFound)
|
||||
}
|
||||
|
||||
// IsEtcdNodeExist returns true iff err is an etcd node aleady exist error.
|
||||
// IsEtcdNodeExist returns true iff err is an etcd node already exist error.
|
||||
func IsEtcdNodeExist(err error) bool {
|
||||
return isEtcdErrorNum(err, tools.EtcdErrorCodeNodeExist)
|
||||
}
|
||||
|
@@ -124,10 +124,10 @@ type Interface interface {
|
||||
// GuaranteedUpdate keeps calling 'tryUpdate()' to update key 'key' (of type 'ptrToType')
|
||||
// retrying the update until success if there is index conflict.
|
||||
// Note that object passed to tryUpdate may change acress incovations of tryUpdate() if
|
||||
// other writers are simultanously updateing it, to tryUpdate() needs to take into account
|
||||
// other writers are simultaneously updateing it, to tryUpdate() needs to take into account
|
||||
// the current contents of the object when deciding how the update object should look.
|
||||
//
|
||||
// Exmaple:
|
||||
// Example:
|
||||
//
|
||||
// s := /* implementation of Interface */
|
||||
// err := s.GuaranteedUpdate(
|
||||
|
Reference in New Issue
Block a user