typofix - https://github.com/vlajos/misspell_fixer
This commit is contained in:
2
pkg/client/cache/delta_fifo.go
vendored
2
pkg/client/cache/delta_fifo.go
vendored
@@ -277,7 +277,7 @@ func (f *DeltaFIFO) GetByKey(key string) (item interface{}, exists bool, err err
|
||||
// Pop blocks until an item is added to the queue, and then returns it. If
|
||||
// multiple items are ready, they are returned in the order in which they were
|
||||
// added/updated. The item is removed from the queue (and the store) before it
|
||||
// is returned, so if you don't succesfully process it, you need to add it back
|
||||
// is returned, so if you don't successfully process it, you need to add it back
|
||||
// with AddIfNotPresent().
|
||||
//
|
||||
// Pop returns a 'Deltas', which has a complete list of all the things
|
||||
|
2
pkg/client/cache/expiration_cache_test.go
vendored
2
pkg/client/cache/expiration_cache_test.go
vendored
@@ -118,7 +118,7 @@ func TestTTLPolicy(t *testing.T) {
|
||||
}
|
||||
fakeTimestampedEntry.timestamp = fakeTime
|
||||
if policy.IsExpired(fakeTimestampedEntry) {
|
||||
t.Errorf("TTL Cache should not expire entires before ttl")
|
||||
t.Errorf("TTL Cache should not expire entries before ttl")
|
||||
}
|
||||
fakeTimestampedEntry.timestamp = expiredTime
|
||||
if !policy.IsExpired(fakeTimestampedEntry) {
|
||||
|
2
pkg/client/cache/fifo.go
vendored
2
pkg/client/cache/fifo.go
vendored
@@ -163,7 +163,7 @@ func (f *FIFO) GetByKey(key string) (item interface{}, exists bool, err error) {
|
||||
// Pop waits until an item is ready and returns it. If multiple items are
|
||||
// ready, they are returned in the order in which they were added/updated.
|
||||
// The item is removed from the queue (and the store) before it is returned,
|
||||
// so if you don't succesfully process it, you need to add it back with
|
||||
// so if you don't successfully process it, you need to add it back with
|
||||
// AddIfNotPresent().
|
||||
func (f *FIFO) Pop() interface{} {
|
||||
f.lock.Lock()
|
||||
|
2
pkg/client/cache/poller.go
vendored
2
pkg/client/cache/poller.go
vendored
@@ -30,7 +30,7 @@ type Enumerator interface {
|
||||
Get(index int) (object interface{})
|
||||
}
|
||||
|
||||
// GetFunc should return an enumerator that you wish the Poller to proccess.
|
||||
// GetFunc should return an enumerator that you wish the Poller to process.
|
||||
type GetFunc func() (Enumerator, error)
|
||||
|
||||
// Poller is like Reflector, but it periodically polls instead of watching.
|
||||
|
Reference in New Issue
Block a user