Run a more strict formatter over the code (#11312)

* Update tooling

* Run gofumpt

* go mod vendor
This commit is contained in:
Brian Kassouf
2021-04-08 09:43:39 -07:00
committed by GitHub
parent 60f3ba99a4
commit a24653cc5c
658 changed files with 10961 additions and 3671 deletions

View File

@@ -160,7 +160,6 @@ func (s *SwiftBackend) Put(ctx context.Context, entry *physical.Entry) error {
defer s.permitPool.Release()
err := s.client.ObjectPutBytes(s.container, entry.Key, entry.Value, "")
if err != nil {
return err
}
@@ -175,9 +174,9 @@ func (s *SwiftBackend) Get(ctx context.Context, key string) (*physical.Entry, er
s.permitPool.Acquire()
defer s.permitPool.Release()
//Do a list of names with the key first since eventual consistency means
//it might be deleted, but a node might return a read of bytes which fails
//the physical test
// Do a list of names with the key first since eventual consistency means
// it might be deleted, but a node might return a read of bytes which fails
// the physical test
list, err := s.client.ObjectNames(s.container, &swift.ObjectsOpts{Prefix: key})
if err != nil {
return nil, err