mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-16 13:50:14 +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() {
|
override suspend fun login() {
|
||||||
|
|
||||||
TIMProtocol.SERVER_IP.sortedBy { Random.nextInt() }.forEach { ip ->
|
TIMProtocol.SERVER_IP.shuffled().forEach { ip ->
|
||||||
bot.logger.info("Connecting server $ip")
|
bot.logger.info("Connecting server $ip")
|
||||||
try {
|
try {
|
||||||
withTimeout(3000) {
|
withTimeout(3000) {
|
||||||
|
Loading…
Reference in New Issue
Block a user