comment, exports

This commit is contained in:
spaced4ndy
2024-06-13 18:54:31 +04:00
parent 898e338832
commit 8578a33185
2 changed files with 9 additions and 0 deletions
+2
View File
@@ -88,6 +88,8 @@ module Simplex.Messaging.Agent.Client
agentClientStore,
agentDRG,
AgentServersSummary (..),
SMPServerState (..),
XFTPServerState (..),
getAgentServersSummary,
getAgentSubscriptions,
slowNetworkConfig,
+7
View File
@@ -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