mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Fix BotConfiguration.copy
This commit is contained in:
parent
cbf151b24d
commit
f27e42d225
@ -455,17 +455,24 @@ public open class BotConfiguration { // open for Java
|
|||||||
|
|
||||||
public fun copy(): BotConfiguration {
|
public fun copy(): BotConfiguration {
|
||||||
return BotConfiguration().also { new ->
|
return BotConfiguration().also { new ->
|
||||||
new.botLoggerSupplier = botLoggerSupplier
|
// To structural order
|
||||||
new.networkLoggerSupplier = networkLoggerSupplier
|
new.workingDir = workingDir
|
||||||
new.deviceInfo = deviceInfo
|
new.json = json
|
||||||
new.parentCoroutineContext = parentCoroutineContext
|
new.parentCoroutineContext = parentCoroutineContext
|
||||||
new.heartbeatPeriodMillis = heartbeatPeriodMillis
|
new.heartbeatPeriodMillis = heartbeatPeriodMillis
|
||||||
new.heartbeatTimeoutMillis = heartbeatTimeoutMillis
|
new.heartbeatTimeoutMillis = heartbeatTimeoutMillis
|
||||||
new.firstReconnectDelayMillis = firstReconnectDelayMillis
|
new.firstReconnectDelayMillis = firstReconnectDelayMillis
|
||||||
new.reconnectPeriodMillis = reconnectPeriodMillis
|
new.reconnectPeriodMillis = reconnectPeriodMillis
|
||||||
new.reconnectionRetryTimes = reconnectionRetryTimes
|
new.reconnectionRetryTimes = reconnectionRetryTimes
|
||||||
|
new.autoReconnectOnForceOffline = autoReconnectOnForceOffline
|
||||||
new.loginSolver = loginSolver
|
new.loginSolver = loginSolver
|
||||||
new.protocol = protocol
|
new.protocol = protocol
|
||||||
|
new.highwayUploadCoroutineCount = highwayUploadCoroutineCount
|
||||||
|
new.deviceInfo = deviceInfo
|
||||||
|
new.botLoggerSupplier = botLoggerSupplier
|
||||||
|
new.networkLoggerSupplier = networkLoggerSupplier
|
||||||
|
new.friendListCache = friendListCache
|
||||||
|
new.groupMemberListCache = groupMemberListCache
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user