load balance

This commit is contained in:
微凉
2022-02-08 15:51:58 +08:00
parent a22903533e
commit f5c5162a9b
3 changed files with 47 additions and 4 deletions

View File

@ -40,7 +40,7 @@ func ParsePath(rawPath string) (*model.Account, string, base.Driver, error) {
path = "/" + strings.Join(paths[2:], "/")
name = paths[1]
}
account, ok := model.GetAccount(name)
account, ok := model.GetBalancedAccount(name)
if !ok {
return nil, "", nil, fmt.Errorf("no [%s] account", name)
}