mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-08-29 07:48:25 +00:00
comment, exports
This commit is contained in:
@@ -88,6 +88,8 @@ module Simplex.Messaging.Agent.Client
|
||||
agentClientStore,
|
||||
agentDRG,
|
||||
AgentServersSummary (..),
|
||||
SMPServerState (..),
|
||||
XFTPServerState (..),
|
||||
getAgentServersSummary,
|
||||
getAgentSubscriptions,
|
||||
slowNetworkConfig,
|
||||
|
||||
@@ -9,6 +9,13 @@ import Data.Time.Clock (UTCTime (..))
|
||||
import Simplex.Messaging.Parsers (defaultJSON)
|
||||
import UnliftIO.STM
|
||||
|
||||
-- Add single type for gathering both smp and xftp stats across all users and servers?
|
||||
-- Idea is to provide agent with a single path to save/restore stats, instead of managing it in UI
|
||||
-- and providing agent with "initial stats". Agent would use this unifying type to write/read
|
||||
-- json representation of all stats and populating AgentClient maps:
|
||||
-- smpServersStats :: TMap (UserId, SMPServer) AgentSMPServerStats,
|
||||
-- xftpServersStats :: TMap (UserId, XFTPServer) AgentXFTPServerStats
|
||||
|
||||
data AgentSMPServerStats = AgentSMPServerStats
|
||||
{ fromTime :: TVar UTCTime,
|
||||
msgSent :: TVar Int, -- total messages sent to server directly
|
||||
|
||||
Reference in New Issue
Block a user