debug on WSSongListRoutes.kt

- debug re-tx logics
This commit is contained in:
dalbodeule 2024-09-24 10:48:50 +09:00
parent c9ceaf01fc
commit ca2089631a
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -65,7 +65,7 @@ fun Routing.wsSongListRoutes() {
} }
delay(100) // Check every 100 ms delay(100) // Check every 100 ms
} }
return false // Timeout return false // Timeout
} }
suspend fun sendWithRetry(uid: String, res: SongResponse, maxRetries: Int = 5, delayMillis: Long = 3000L) { suspend fun sendWithRetry(uid: String, res: SongResponse, maxRetries: Int = 5, delayMillis: Long = 3000L) {
@ -136,16 +136,6 @@ fun Routing.wsSongListRoutes() {
// Handle song requests // Handle song requests
handleSongRequest(data, user, dispatcher, logger) handleSongRequest(data, user, dispatcher, logger)
// Send ACK after handling request
sendSerialized(SongResponse(
SongType.ACK.value,
user.token!!,
null,
null,
null,
null,
))
} }
} }
is Ping -> send(Pong(frame.data)) is Ping -> send(Pong(frame.data))