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:
RainbowMango
2019-07-10 12:00:52 +08:00
parent a63446d5c7
commit 0e0e1f7dab
19 changed files with 54 additions and 32 deletions

View File

@@ -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,