Skip to content

Commit 06aabcf

Browse files
lesauxneolynx
authored andcommitted
another lint fix + timeout
1 parent 7304cfb commit 06aabcf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
version: "2"
2+
run:
3+
timeout: 5m
24
linters:
35
settings:
46
staticcheck:

gcs/public.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (g *PublishedStorage) putFile(path string, source io.Reader, sourceMD5 stri
146146
writer := obj.NewWriter(context.TODO())
147147

148148
if g.storageClass != "" {
149-
writer.ObjectAttrs.StorageClass = g.storageClass
149+
writer.StorageClass = g.storageClass
150150
}
151151
if sourceMD5 != "" {
152152
writer.Metadata = map[string]string{"Md5": sourceMD5}

0 commit comments

Comments
 (0)