From 93e58d59ec03c1ddb5d58a7da2925e5bbc745d84 Mon Sep 17 00:00:00 2001 From: Erlend Hamnaberg Date: Mon, 30 Dec 2024 12:59:19 +0100 Subject: [PATCH] dispatcher should be initialized first --- .../scala/org/http4s/netty/client/Http4sChannelPoolMap.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/scala/org/http4s/netty/client/Http4sChannelPoolMap.scala b/client/src/main/scala/org/http4s/netty/client/Http4sChannelPoolMap.scala index d1cf52a2..2ae2fbfc 100644 --- a/client/src/main/scala/org/http4s/netty/client/Http4sChannelPoolMap.scala +++ b/client/src/main/scala/org/http4s/netty/client/Http4sChannelPoolMap.scala @@ -115,8 +115,8 @@ private[client] class Http4sChannelPoolMap[F[_]]( val key = Key(RequestKey.fromRequest(request), request.httpVersion) for { - channel <- connectAndConfigure(key) dispatcher <- Dispatcher.sequential[F](await = true) + channel <- connectAndConfigure(key) handler <- Resource.make { F.pure { val handler =