typofix - https://github.com/vlajos/misspell_fixer
This commit is contained in:
@@ -490,7 +490,7 @@ func (e *Etcd) WatchPredicate(ctx api.Context, m generic.Matcher, resourceVersio
|
||||
// if the TTL cannot be calculated. The defaultTTL is changed to 1 if less than zero. Zero means
|
||||
// no TTL, not expire immediately.
|
||||
func (e *Etcd) calculateTTL(obj runtime.Object, defaultTTL int64, update bool) (ttl uint64, err error) {
|
||||
// etcd may return a negative TTL for a node if the expiration has not occured due
|
||||
// etcd may return a negative TTL for a node if the expiration has not occurred due
|
||||
// to server lag - we will ensure that the value is at least set.
|
||||
if defaultTTL < 0 {
|
||||
defaultTTL = 1
|
||||
|
@@ -40,6 +40,6 @@ type RangeRegistry interface {
|
||||
// or an error if the allocation could not be retrieved.
|
||||
Get() (*api.RangeAllocation, error)
|
||||
// CreateOrUpdate should create or update the provide allocation, unless a conflict
|
||||
// has occured since the item was last created.
|
||||
// has occurred since the item was last created.
|
||||
CreateOrUpdate(*api.RangeAllocation) error
|
||||
}
|
||||
|
Reference in New Issue
Block a user