mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-11 14:37:00 +00:00
* Refactoring the Waku Archive. Simplifying the app.nim This change is needed to accommodate the further PRs where we will integrate Postgres in `wakunode2`.
18 lines
381 B
Nim
18 lines
381 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
|