From 495a4af7cf597f564abe98ba46d2c7a841899c7e Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Wed, 4 Mar 2020 14:41:00 -0800 Subject: [PATCH] Fix goimports Separate fix for cherry-picked code Signed-off-by: Derek McGowan --- registry/storage/cache/metrics/prom.go | 7 ++++--- registry/storage/cache/redis/redis.go | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/registry/storage/cache/metrics/prom.go b/registry/storage/cache/metrics/prom.go index 22e847b6d..7b50e93fa 100644 --- a/registry/storage/cache/metrics/prom.go +++ b/registry/storage/cache/metrics/prom.go @@ -2,12 +2,13 @@ package metrics import ( "context" + "time" + "github.com/docker/distribution" + prometheus "github.com/docker/distribution/metrics" "github.com/docker/distribution/registry/storage/cache" "github.com/docker/go-metrics" "github.com/opencontainers/go-digest" - prometheus "github.com/docker/distribution/metrics" - "time" ) type prometheusCacheProvider struct { @@ -65,4 +66,4 @@ func (p *prometheusCacheProvider) RepositoryScoped(repo string) (distribution.Bl s, p.latencyTimer, }, nil -} \ No newline at end of file +} diff --git a/registry/storage/cache/redis/redis.go b/registry/storage/cache/redis/redis.go index 8d32aa486..ed03f9f0b 100644 --- a/registry/storage/cache/redis/redis.go +++ b/registry/storage/cache/redis/redis.go @@ -3,11 +3,11 @@ package redis import ( "context" "fmt" - "github.com/docker/distribution/registry/storage/cache/metrics" "github.com/docker/distribution" "github.com/docker/distribution/reference" "github.com/docker/distribution/registry/storage/cache" + "github.com/docker/distribution/registry/storage/cache/metrics" "github.com/garyburd/redigo/redis" "github.com/opencontainers/go-digest" )