mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
Revert "GCS: allow a 10 seconds timeout for client creation"
This reverts commit b2e9935049.
Fixes #2000
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -85,9 +85,7 @@ func NewGCSFs(connectionID, localTempDir, mountPath string, config GCSFsConfig)
|
||||
if err = fs.config.validate(); err != nil {
|
||||
return fs, err
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
|
||||
defer cancel()
|
||||
|
||||
ctx := context.Background()
|
||||
if fs.config.AutomaticCredentials > 0 {
|
||||
fs.svc, err = storage.NewClient(ctx,
|
||||
storage.WithJSONReads(),
|
||||
|
||||
Reference in New Issue
Block a user