mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-18 02:00:06 -06:00
read manager from the config definition
This commit is contained in:
@@ -16,7 +16,7 @@ func New(cfg *config.Config) Service {
|
||||
fmt.Printf("config type: %T", account.Registry["filesystem"])
|
||||
return Service{
|
||||
Config: cfg,
|
||||
Manager: account.Registry["filesystem"](cfg), // TODO read manager from config
|
||||
Manager: account.Registry[cfg.Manager](cfg),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user