Backend: Expose connections parameter

This commit is contained in:
Michael Eischer
2021-08-07 22:20:49 +02:00
parent 07a565e6f7
commit 4f97492d28
10 changed files with 83 additions and 31 deletions

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"