mirror of https://github.com/waku-org/nwaku.git
16 lines
339 B
Nim
16 lines
339 B
Nim
|
when (NimMajor, NimMinor) < (1, 4):
|
||
|
{.push raises: [Defect].}
|
||
|
else:
|
||
|
{.push raises: [].}
|
||
|
|
||
|
import
|
||
|
stew/results
|
||
|
import
|
||
|
./driver
|
||
|
|
||
|
type RetentionPolicyResult*[T] = Result[T, string]
|
||
|
|
||
|
type RetentionPolicy* = ref object of RootObj
|
||
|
|
||
|
|
||
|
method execute*(p: RetentionPolicy, store: ArchiveDriver): RetentionPolicyResult[void] {.base.} = discard
|