We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7bf004 commit 7e316ebCopy full SHA for 7e316eb
cache/gcs/gcs.go
@@ -47,13 +47,21 @@ func New(config dict.Dicter) (cache.Interface, error) {
47
}
48
49
gcsCache.Basepath, err = config.String(ConfigKeyBasepath, nil)
50
+ if err != nil {
51
+ return nil, err
52
+ }
53
+
54
defaultMaxZoom := uint(tegola.MaxZ)
55
56
gcsCache.MaxZoom, err = config.Uint(ConfigKeyMaxZoom, &defaultMaxZoom)
57
58
59
60
61
gcsCache.Ctx = context.Background()
62
client, err := storage.NewClient(gcsCache.Ctx)
63
if err != nil {
- log.Fatal(err)
64
65
66
gcsCache.Client = client
67
gcsCache.Bucket = client.Bucket(gcsCache.BucketName)
0 commit comments