From 569d18aef98df1f66de04cc56cfdb06b9f4337fa Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Mon, 24 Sep 2018 09:05:44 +0800 Subject: [PATCH] Fix some typos Signed-off-by: Rui Cao --- registry/handlers/app.go | 4 ++-- registry/storage/cache/redis/redis_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/registry/handlers/app.go b/registry/handlers/app.go index cf15a8fa2..ece0e52ff 100644 --- a/registry/handlers/app.go +++ b/registry/handlers/app.go @@ -555,7 +555,7 @@ func (app *App) configureRedis(configuration *configuration.Configuration) { _, err := c.Do("PING") return err }, - Wait: false, // if a connection is not avialable, proceed without cache. + Wait: false, // if a connection is not available, proceed without cache. } app.redis = pool @@ -997,7 +997,7 @@ func applyStorageMiddleware(driver storagedriver.StorageDriver, middlewares []co // uploadPurgeDefaultConfig provides a default configuration for upload // purging to be used in the absence of configuration in the -// confifuration file +// configuration file func uploadPurgeDefaultConfig() map[interface{}]interface{} { config := map[interface{}]interface{}{} config["enabled"] = true diff --git a/registry/storage/cache/redis/redis_test.go b/registry/storage/cache/redis/redis_test.go index d324842d3..03cc85f1e 100644 --- a/registry/storage/cache/redis/redis_test.go +++ b/registry/storage/cache/redis/redis_test.go @@ -39,7 +39,7 @@ func TestRedisBlobDescriptorCacheProvider(t *testing.T) { _, err := c.Do("PING") return err }, - Wait: false, // if a connection is not avialable, proceed without cache. + Wait: false, // if a connection is not available, proceed without cache. } // Clear the database