File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Simplex/Messaging/Notifications/Server Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -184,16 +184,15 @@ newWPPushClient :: NtfPushServer -> WPProvider -> IO PushProviderClient
184184newWPPushClient 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
198197wpHTTPManager :: IO Manager
199198wpHTTPManager =
You can’t perform that action at this time.
0 commit comments