Fix goimports

Separate fix for cherry-picked code

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan 2020-03-04 14:41:00 -08:00
parent 74d442a058
commit 495a4af7cf
No known key found for this signature in database
GPG key ID: F58C5D0A4405ACDB
2 changed files with 5 additions and 4 deletions

View file

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

View file

@ -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"
)