Skip to content

Commit

Permalink
🐛 fix that only two accounts can be load balanced
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Feb 19, 2022
1 parent 1857959 commit b3a8201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func GetAccountsByName(name string) []Account {
return accounts
}
for _, v := range accountsMap {
if v.Name == name || v.Name == name+balance {
if v.Name == name || strings.HasPrefix(v.Name, name+balance) {
accounts = append(accounts, v)
}
}
Expand Down

0 comments on commit b3a8201

Please sign in to comment.