migrations: Fix S3 backend detection

This commit is contained in:
Michael Eischer
2023-04-08 12:53:43 +02:00
parent c934c99d41
commit 6042df075f
8 changed files with 63 additions and 14 deletions

View File

@@ -46,6 +46,8 @@ func (r rateLimitedBackend) Load(ctx context.Context, h restic.Handle, length in
})
}
func (r rateLimitedBackend) Unwrap() restic.Backend { return r.Backend }
type limitedReader struct {
io.Reader
writerTo io.WriterTo