Skip to content

Commit 5b56bdf

Browse files
committed
Fix following rebase
1 parent afd0011 commit 5b56bdf

File tree

1 file changed

+3
-4
lines changed
  • src/Simplex/Messaging/Notifications/Server

1 file changed

+3
-4
lines changed

src/Simplex/Messaging/Notifications/Server/Env.hs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,15 @@ newWPPushClient :: NtfPushServer -> WPProvider -> IO PushProviderClient
184184
newWPPushClient NtfPushServer {wpConfig, pushClients} (WPP (WPSrvLoc (SrvLoc h p))) = do
185185
logDebug "New WP Client requested"
186186
-- We use one http manager per push server (which may be used by different clients)
187-
manager <- wpHTTPManager
188187
cache <- newIORef Nothing
189188
random <- C.newRandom
190-
let client = WebPushClient {wpConfig, cache, manager, random}
189+
let client = WebPushClient {wpConfig, cache, random}
191190
r <- wpHTTP2Client h p
192191
case r of
193-
Right client -> pure $ wpPushProviderClientH2 client
192+
Right h2Client -> pure $ wpPushProviderClientH2 client h2Client
194193
Left e -> do
195194
logError $ "Error connecting to H2 WP: " <> tshow e
196-
wpPushProviderClientH1 client
195+
wpPushProviderClientH1 client <$> wpHTTPManager
197196

198197
wpHTTPManager :: IO Manager
199198
wpHTTPManager =

0 commit comments

Comments
 (0)