Skip to content

Commit 8ef709a

Browse files
Tulsishahashmeenkaur
authored andcommitted
Make createFolder and deleteFolder retry able (#2565)
* make createFolder and deleteFolder retryable * lint fix
1 parent e7fa29b commit 8ef709a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/storage/storageutil/control_client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ func setRetryConfigForFolderAPIs(sc *control.StorageControlClient, clientConfig
4949
sc.CallOptions.RenameFolder = storageControlClientRetryOptions(clientConfig)
5050
sc.CallOptions.GetFolder = storageControlClientRetryOptions(clientConfig)
5151
sc.CallOptions.GetStorageLayout = storageControlClientRetryOptions(clientConfig)
52+
sc.CallOptions.CreateFolder = storageControlClientRetryOptions(clientConfig)
53+
sc.CallOptions.DeleteFolder = storageControlClientRetryOptions(clientConfig)
5254
}
5355

5456
func CreateGRPCControlClient(ctx context.Context, clientOpts []option.ClientOption, clientConfig *StorageClientConfig) (controlClient *control.StorageControlClient, err error) {

0 commit comments

Comments
 (0)