Skip to content

Commit

Permalink
Changes to make nwaku compile after vendor bumping
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivansete-status committed Dec 7, 2023
1 parent 3f94271 commit fd83795
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion waku/waku_lightpush/common.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ type PushMessageHandler* = proc(
peer: PeerId,
pubsubTopic: PubsubTopic,
message: WakuMessage
): Future[WakuLightPushResult[void]] {.gcsafe, closure.}
): Future[WakuLightPushResult[void]] {.async.}
8 changes: 3 additions & 5 deletions waku/waku_lightpush/protocol.nim
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ logScope:
topics = "waku lightpush"

type WakuLightPush* = ref object of LPProtocol
PushMessageHandler* = proc(peer: PeerId, pubsubTopic: PubsubTopic, message: WakuMessage):
Future[WakuLightPushResult[void]] {.gcsafe, closure, raises: [].}
rng*: ref rand.HmacDrbgContext
peerManager*: PeerManager
pushHandler*: PushMessageHandler
rng*: ref rand.HmacDrbgContext
peerManager*: PeerManager
pushHandler*: PushMessageHandler

proc handleRequest*(wl: WakuLightPush, peerId: PeerId, buffer: seq[byte]): Future[PushRPC] {.async.} =
let reqDecodeRes = PushRPC.decode(buffer)
Expand Down

0 comments on commit fd83795

Please sign in to comment.