storage: export default shouldRetry function #6362
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
I've recently stumbled across similar errors to #3735 and applied the proposed fix there - created a new
ShouldRetry
function for the storage client. However, it seems very odd that I have to copy the code from the default retry function - which also means that any additions/fixes to it will not be reflected in my code automatically. I think it would be nice to have that function exported from thestorage
package, so it can be used like that:The text was updated successfully, but these errors were encountered: