Skip to content

Commit

Permalink
移除链接ws时默认配置的ping帧配置
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Jun 7, 2024
1 parent faf4a45 commit fdd9f8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/P.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ object P {
override val homepage: String get() = HOMEPAGE


private val baseVersion = v(0, 0, 3)
private val baseVersion = v(0, 0, 4)

val snapshotVersion = baseVersion - Version.SNAPSHOT
override val version = if (isSnapshot()) snapshotVersion else baseVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,7 @@ internal class OneBotBotImpl(

init {
apiClient = resolveHttpClient()
wsClient = resolveWsClient(
wsConfig = {
pingInterval = 6000L
}
)
wsClient = resolveWsClient()
job.invokeOnCompletion { apiClient.close() }
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import love.forte.simbot.event.EventResult
import love.forte.simbot.event.onEachError
import love.forte.simbot.logger.Logger

internal inline fun Flow<EventResult>.onEachErrorLog(
internal fun Flow<EventResult>.onEachErrorLog(
logger: Logger
): Flow<EventResult> = onEachError { err ->
logger.error(
Expand Down

0 comments on commit fdd9f8a

Please sign in to comment.