Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: extending store metrics #3042

Merged
merged 9 commits into from
Sep 20, 2024
4 changes: 3 additions & 1 deletion library/callback.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ type WakuCallBack* = proc(
callerRet: cint, msg: ptr cchar, len: csize_t, userData: pointer
) {.cdecl, gcsafe, raises: [].}

template checkLibwakuParams*(ctx: ptr WakuContext, callback: WakuCallBack, userData: pointer) =
template checkLibwakuParams*(
ctx: ptr WakuContext, callback: WakuCallBack, userData: pointer
) =
ctx[].userData = userData

if isNil(callback):
Expand Down
4 changes: 1 addition & 3 deletions library/libwaku.nim
Original file line number Diff line number Diff line change
Expand Up @@ -487,9 +487,7 @@ proc waku_get_peerids_from_peerstore(
let connRes = waku_thread.sendRequestToWakuThread(
ctx,
RequestType.PEER_MANAGER,
PeerManagementRequest.createShared(
PeerManagementMsgType.GET_ALL_PEER_IDS
),
PeerManagementRequest.createShared(PeerManagementMsgType.GET_ALL_PEER_IDS),
)
if connRes.isErr():
let msg = $connRes.error
Expand Down
Loading
Loading