Skip to content

VFS Retry Option

Compare
Choose a tag to compare
@seeroush seeroush released this 23 May 14:35

Release Notes

  1. Added the Retry() method to the FileSystem interface, along with a no-op default retryer.
  2. Integrated the newly defined retryer interface into the GCS implementation of VFS and now allow the retry method to be injected as a FileSystem option.
  3. Integrated the request.Retryer from the s3 client as an injectable implementation for the S3 vfs.Option.

Upgrade steps

With v4.0.0, we introduced the ability to add a 'retry' option to each registered file system. This version bump will require an update to any existing FileSystem implementations. If a custom retryer is not required by the implemented file system, the default retryer can be returned.

func (fs *FileSystem) Retry() vfs.Retry {
	return vfs.DefaultRetryer()
}