2022-11-22 18:40:24 +00:00
|
|
|
when (NimMajor, NimMinor) < (1, 4):
|
|
|
|
{.push raises: [Defect].}
|
|
|
|
else:
|
|
|
|
{.push raises: [].}
|
|
|
|
|
|
|
|
import
|
2023-05-25 15:34:34 +00:00
|
|
|
stew/results,
|
|
|
|
chronos
|
2022-11-22 18:40:24 +00:00
|
|
|
import
|
|
|
|
./driver
|
|
|
|
|
|
|
|
type RetentionPolicyResult*[T] = Result[T, string]
|
|
|
|
|
|
|
|
type RetentionPolicy* = ref object of RootObj
|
|
|
|
|
2023-05-25 15:34:34 +00:00
|
|
|
method execute*(p: RetentionPolicy, store: ArchiveDriver):
|
2023-06-27 11:24:31 +00:00
|
|
|
Future[RetentionPolicyResult[void]] {.base, async.} = discard
|