Skip to content

Commit 468e141

Browse files
epoberezkinshumvgolove
authored andcommitted
simpler
1 parent add96a5 commit 468e141

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Simplex/Messaging/Agent.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ createConnection c nm userId enableNtfs checkNotices cMode linkData_ clientData
415415
{-# INLINE createConnection #-}
416416

417417
-- | Create SMP agent connection on a specific SMP server.
418-
createConnectionOnServer :: ConnectionModeI c => AgentClient -> NetworkRequestMode -> UserId -> Bool -> Bool -> SConnectionMode c -> Maybe (UserConnLinkData c) -> Maybe CRClientData -> SMPServerWithAuth -> CR.InitialKeys -> SubscriptionMode -> AE (ConnId, CreatedConnLink c)
419-
createConnectionOnServer c nm userId enableNtfs checkNotices cMode linkData_ clientData srv pqInitKeys subMode =
420-
withAgentEnv c $ newConn c nm userId enableNtfs checkNotices cMode linkData_ clientData (Just srv) pqInitKeys subMode
418+
createConnectionOnServer :: ConnectionModeI c => AgentClient -> NetworkRequestMode -> UserId -> Bool -> Bool -> SConnectionMode c -> Maybe (UserConnLinkData c) -> Maybe CRClientData -> Maybe SMPServerWithAuth -> CR.InitialKeys -> SubscriptionMode -> AE (ConnId, CreatedConnLink c)
419+
createConnectionOnServer c nm userId enableNtfs checkNotices cMode linkData_ clientData srv_ pqInitKeys subMode =
420+
withAgentEnv c $ newConn c nm userId enableNtfs checkNotices cMode linkData_ clientData srv_ pqInitKeys subMode
421421
{-# INLINE createConnectionOnServer #-}
422422

423423
-- | Prepare connection link for contact mode (no network call).

0 commit comments

Comments
 (0)