mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-13 03:16:05 +08:00
Simplify shuffled
This commit is contained in:
parent
d6e4c0ee70
commit
2f59504e04
@ -59,7 +59,7 @@ internal class TIMPCBotNetworkHandler internal constructor(coroutineContext: Cor
|
||||
|
||||
override suspend fun login() {
|
||||
|
||||
TIMProtocol.SERVER_IP.sortedBy { Random.nextInt() }.forEach { ip ->
|
||||
TIMProtocol.SERVER_IP.shuffled().forEach { ip ->
|
||||
bot.logger.info("Connecting server $ip")
|
||||
try {
|
||||
withTimeout(3000) {
|
||||
|
Loading…
Reference in New Issue
Block a user