mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
13 lines
364 B
Nim
13 lines
364 B
Nim
|
|
# import chronicles, chronos, results
|
||
|
|
import chronos
|
||
|
|
import waku/waku_core
|
||
|
|
import waku/api/types
|
||
|
|
import waku/factory/waku
|
||
|
|
|
||
|
|
proc subscribeImpl*(
|
||
|
|
w: Waku, requestId: RequestId, contentTopic: ContentTopic
|
||
|
|
): Future[void] {.async.} =
|
||
|
|
## Implementation of the subscribe API
|
||
|
|
## This is a placeholder implementation
|
||
|
|
await sleepAsync(1000) # Simulate async work
|