mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 08:23:08 +00:00
16 lines
386 B
Nim
16 lines
386 B
Nim
when (NimMajor, NimMinor) < (1, 4):
|
|
{.push raises: [Defect].}
|
|
else:
|
|
{.push raises: [].}
|
|
|
|
import
|
|
stew/results
|
|
import
|
|
../../../protocol/waku_store/message_store
|
|
|
|
type RetentionPolicyResult*[T] = Result[T, string]
|
|
|
|
type MessageRetentionPolicy* = ref object of RootObj
|
|
|
|
|
|
method execute*(p: MessageRetentionPolicy, store: MessageStore): RetentionPolicyResult[void] {.base.} = discard |