mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-06-09 17:13:06 +00:00
smp: fix messaging client service issues (#1751)
* services: fix minor issues * fix accounting for subscribed service queues, add prometheus stats * fix uncorrelated subquery * fix potential race condition when inserting service defensively, as it is also prevented by how client is created --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
@@ -270,7 +270,7 @@ getUsedSMPServers st =
|
||||
smp_host, smp_port, smp_keyhash, smp_server_id,
|
||||
ntf_service_id, smp_notifier_count, smp_notifier_ids_hash
|
||||
FROM smp_servers
|
||||
WHERE EXISTS (SELECT 1 FROM subscriptions WHERE status IN ?)
|
||||
WHERE EXISTS (SELECT 1 FROM subscriptions WHERE smp_server_id = smp_servers.smp_server_id AND status IN ?)
|
||||
|]
|
||||
(Only (In subscribeNtfStatuses))
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user