mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
Revert "GCS: allow a 10 seconds timeout for client creation"
This reverts commit d18e1ba3d9.
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -86,9 +86,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)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user