Rename to AddUsersInBatch().

This commit is contained in:
Gucheng Wang
2021-12-02 10:55:53 +08:00
parent 746967e18a
commit cc2797ed27
2 changed files with 2 additions and 2 deletions

View File

@ -345,7 +345,7 @@ func AddUsers(users []*User) bool {
return affected != 0
}
func AddUsersSafe(users []*User) bool {
func AddUsersInBatch(users []*User) bool {
batchSize := 1000
if len(users) == 0 {

View File

@ -141,7 +141,7 @@ func syncUsers() {
}
}
}
object.AddUsersSafe(newUsers)
object.AddUsersInBatch(newUsers)
for _, user := range users {
id := user.Id