mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-15 17:35:45 +00:00
12 lines
284 B
Nim
12 lines
284 B
Nim
when (NimMajor, NimMinor) < (1, 4):
|
|
{.push raises: [Defect].}
|
|
else:
|
|
{.push raises: [].}
|
|
|
|
import ../../../waku_core, ../../common
|
|
|
|
type DbCursor* = (Timestamp, seq[byte], PubsubTopic)
|
|
|
|
proc toDbCursor*(c: ArchiveCursor): DbCursor =
|
|
(c.storeTime, @(c.digest.data), c.pubsubTopic)
|