mirror of
https://github.com/restic/restic.git
synced 2025-08-14 01:17:41 +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:
@@ -38,7 +38,7 @@ type Backend struct {
|
||||
}
|
||||
|
||||
func NewFactory() location.Factory {
|
||||
return location.NewLimitedBackendFactory(ParseConfig, location.NoPassword, Create, Open)
|
||||
return location.NewLimitedBackendFactory("rclone", ParseConfig, location.NoPassword, Create, Open)
|
||||
}
|
||||
|
||||
// run starts command with args and initializes the StdioConn.
|
||||
|
Reference in New Issue
Block a user