This commit is contained in:
2026-10-01 16:55:14 +07:00
parent ee15d149bd
commit 385a43f5bd
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -19,6 +19,7 @@ type storage struct {
}
func NewRustFSStorage(
ctx context.Context,
endpoint string,
accessKeyID string,
secretAccessKey string,
@@ -34,7 +35,7 @@ func NewRustFSStorage(
return nil, err
}
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Second)
ctx, cancel := context.WithTimeout(ctx, 3*time.Second)
defer cancel()
err = client.CreateBucket(
ctx,