Skip to content

Commit

Permalink
2.12 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Caparow committed Nov 8, 2023
1 parent bc4fa44 commit c618250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class WsRpcDispatcherFactory[F[+_, +_]: Async2: Temporal2: Primitives2: UnsafeRu
override def onClose(websocket: WebSocket, code: Int, reason: String): Unit = {
socketRef.set(None)
websocket.sendCloseFrame()
()
}

override def onError(t: Throwable): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class WsRequestState[F[+_, +_]: IO2: Temporal2: Primitives2] extends WsClientRes
responses.values().removeIf {
handler =>
val isExpired = handler.expired(now)
if (isExpired) removed.addOne(handler)
if (isExpired) removed.append(handler)
isExpired
}
removed.toList
Expand Down

0 comments on commit c618250

Please sign in to comment.