mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-09 14:26:27 +00:00
17 lines
362 B
Nim
17 lines
362 B
Nim
|
when (NimMajor, NimMinor) < (1, 4):
|
||
|
{.push raises: [Defect].}
|
||
|
else:
|
||
|
{.push raises: [].}
|
||
|
|
||
|
import results, chronos
|
||
|
import ./driver
|
||
|
|
||
|
type RetentionPolicyResult*[T] = Result[T, string]
|
||
|
|
||
|
type RetentionPolicy* = ref object of RootObj
|
||
|
|
||
|
method execute*(
|
||
|
p: RetentionPolicy, store: ArchiveDriver
|
||
|
): Future[RetentionPolicyResult[void]] {.base, async.} =
|
||
|
discard
|