mirror of https://github.com/waku-org/nwaku.git
17 lines
380 B
Nim
17 lines
380 B
Nim
when (NimMajor, NimMinor) < (1, 4):
|
|
{.push raises: [Defect].}
|
|
else:
|
|
{.push raises: [].}
|
|
|
|
import
|
|
stew/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 |