smp server: fix notifiers lost when compacting store log (#1347)

This commit is contained in:
Evgeny authored and Evgeny Poberezkin committed 2024-10-02 09:24:04 +01:00
1 parent 4268b90763
commit cf559ee43f
4 files changed
+8 -1

No files matched your search

+1
View File
@@ -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