mirror of
https://github.com/restic/restic.git
synced 2025-08-11 10:07:47 +00:00
backend: Hardcode backend scheme in Factory
Our ParseConfig implementations always expect a specific scheme, thus no other scheme would work.
This commit is contained in:
@@ -27,6 +27,7 @@ func NewFactory() location.Factory {
|
||||
be := New()
|
||||
|
||||
return location.NewHTTPBackendFactory[struct{}, *MemoryBackend](
|
||||
"mem",
|
||||
func(s string) (*struct{}, error) {
|
||||
return &struct{}{}, nil
|
||||
},
|
||||
|
Reference in New Issue
Block a user