@@ -1654,7 +1654,7 @@ client
16541654 subscribeQueueAndDeliver msg_ q qr@ QueueRec {rcvServiceId} =
16551655 liftIO (TM. lookupIO entId $ subscriptions clnt) >>= \ case
16561656 Nothing ->
1657- deliver =<< sharedSubscribeQueue q SRecipientService rcvServiceId subscribers subscriptions serviceSubsCount (newSubscription NoSub ) rcvServices
1657+ deliver =<< sharedSubscribeQueue q rcvServiceId subscribers subscriptions serviceSubsCount (newSubscription NoSub ) rcvServices
16581658 Just s@ Sub {subThread} -> do
16591659 stats <- asks serverStats
16601660 case subThread of
@@ -1756,23 +1756,21 @@ client
17561756
17571757 subscribeNotifications :: StoreQueue s -> NtfCreds -> M s BrokerMsg
17581758 subscribeNotifications q NtfCreds {ntfServiceId} = do
1759- (hasSub, _) <- sharedSubscribeQueue q SNotifierService ntfServiceId ntfSubscribers ntfSubscriptions ntfServiceSubsCount (pure () ) ntfServices
1759+ (hasSub, _) <- sharedSubscribeQueue q ntfServiceId ntfSubscribers ntfSubscriptions ntfServiceSubsCount (pure () ) ntfServices
17601760 when (isNothing clntServiceId) $
17611761 asks serverStats >>= incStat . (if hasSub then ntfSubDuplicate else ntfSub)
17621762 pure $ SOK clntServiceId
17631763
17641764 sharedSubscribeQueue ::
1765- (PartyI p , ServiceParty p ) =>
17661765 StoreQueue s ->
1767- SParty p ->
17681766 Maybe ServiceId ->
17691767 ServerSubscribers s ->
17701768 (Client s -> TMap QueueId sub ) ->
17711769 (Client s -> TVar (Int64 , IdsHash )) ->
17721770 STM sub ->
17731771 (ServerStats -> ServiceStats ) ->
17741772 M s (Bool , Maybe sub )
1775- sharedSubscribeQueue q party queueServiceId srvSubscribers clientSubs clientServiceSubs mkSub servicesSel = do
1773+ sharedSubscribeQueue q queueServiceId srvSubscribers clientSubs clientServiceSubs mkSub servicesSel = do
17761774 stats <- asks serverStats
17771775 let incSrvStat sel = incStat $ sel $ servicesSel stats
17781776 writeSub = writeTQueue (subQ srvSubscribers) (CSClient entId queueServiceId clntServiceId, clientId)
0 commit comments