mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-10-26 21:12:36 +00:00
smp server: fix notifiers lost when compacting store log (#1347)
This commit is contained in:
1 parent
4268b90763
commit
cf559ee43f
4 files changed
+8
-1
No files matched your search
@@ -54,6 +54,7 @@ fileTimePrecision :: Int64
|
||||
fileTimePrecision = 3600 -- truncate creation time to 1 hour
|
||||
|
||||
data FileRecipient = FileRecipient RecipientId RcvPublicAuthKey
|
||||
deriving (Show)
|
||||
|
||||
instance StrEncoding FileRecipient where
|
||||
strEncode (FileRecipient rId rKey) = strEncode rId <> ":" <> strEncode rKey
|
||||
|
||||
@@ -44,6 +44,7 @@ data FileStoreLogRecord
|
||||
| AddRecipients SenderId (NonEmpty FileRecipient)
|
||||
| DeleteFile SenderId
|
||||
| AckFile RecipientId
|
||||
deriving (Show)
|
||||
|
||||
instance StrEncoding FileStoreLogRecord where
|
||||
strEncode = \case
|
||||
|
||||
Reference in new issue
Block a user