1. Fix lint errors for the whole directory staging/src/k8s.io/client-go/tools/cache;
2. Remove staging/src/k8s.io/client-go/tools/cache from .golint_failures; 3. Fix some typo from comments.
This commit is contained in:
2
pkg/kubelet/util/cache/object_cache_test.go
vendored
2
pkg/kubelet/util/cache/object_cache_test.go
vendored
@@ -32,7 +32,7 @@ type testObject struct {
|
||||
|
||||
// A fake objectCache for unit test.
|
||||
func NewFakeObjectCache(f func() (interface{}, error), ttl time.Duration, clock clock.Clock) *ObjectCache {
|
||||
ttlPolicy := &expirationcache.TTLPolicy{Ttl: ttl, Clock: clock}
|
||||
ttlPolicy := &expirationcache.TTLPolicy{TTL: ttl, Clock: clock}
|
||||
deleteChan := make(chan string, 1)
|
||||
return &ObjectCache{
|
||||
updater: f,
|
||||
|
Reference in New Issue
Block a user