2024-02-02 09:56:41 +01:00
|
|
|
import chronos
|
2023-10-12 20:59:21 +02:00
|
|
|
|
2024-02-02 09:56:41 +01:00
|
|
|
import ../../../waku/[waku_core/message, waku_store]
|
2023-10-12 20:59:21 +02:00
|
|
|
|
2024-02-02 09:56:41 +01:00
|
|
|
const
|
|
|
|
FUTURE_TIMEOUT* = 1.seconds
|
|
|
|
FUTURE_TIMEOUT_LONG* = 10.seconds
|
2023-11-15 16:15:38 +01:00
|
|
|
|
2023-10-12 20:59:21 +02:00
|
|
|
proc newPushHandlerFuture*(): Future[(string, WakuMessage)] =
|
2024-02-02 09:56:41 +01:00
|
|
|
newFuture[(string, WakuMessage)]()
|
2023-11-15 16:11:36 +01:00
|
|
|
|
|
|
|
proc newBoolFuture*(): Future[bool] =
|
2024-02-02 09:56:41 +01:00
|
|
|
newFuture[bool]()
|
2023-12-19 15:38:43 +01:00
|
|
|
|
|
|
|
proc newHistoryFuture*(): Future[HistoryQuery] =
|
2024-02-02 09:56:41 +01:00
|
|
|
newFuture[HistoryQuery]()
|