Backend: Expose connections parameter

This commit is contained in:
Michael Eischer committed 2022-04-23 11:13:08 +02:00
1 parent 07a565e6f7
commit 4f97492d28
10 files changed
+83 -31

No files matched your search

+4
View File
@@ -229,6 +229,10 @@ func (be *MemoryBackend) List(ctx context.Context, t restic.FileType, fn func(re
return ctx.Err()
}
func (be *MemoryBackend) Connections() uint {
return 2
}
// Location returns the location of the backend (RAM).
func (be *MemoryBackend) Location() string {
return "RAM"