Rate limit

This commit is contained in:
nise.moe 2024-03-05 13:11:32 +01:00
parent ead6ae3397
commit 9a0508b389

View File

@ -80,6 +80,7 @@ class ImportUsers(
val bannedUsersCondition = SCORES.IS_BANNED.eq(true) val bannedUsersCondition = SCORES.IS_BANNED.eq(true)
val usersResult = this.osuApi.getUsersBatch(userIds) val usersResult = this.osuApi.getUsersBatch(userIds)
Thread.sleep(SLEEP_AFTER_API_CALL)
if (usersResult == null) { if (usersResult == null) {
this.logger.error("Failed to get users") this.logger.error("Failed to get users")