Skip to content

Commit

Permalink
chore: extending store metrics (#3042)
Browse files Browse the repository at this point in the history
* adding query_metrics module
* update fleet-dashboard with new store panels for better timing insight
  • Loading branch information
Ivansete-status authored and gabrielmer committed Sep 20, 2024
1 parent b534a1c commit 26a488d
Show file tree
Hide file tree
Showing 9 changed files with 2,833 additions and 1,875 deletions.
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

0 comments on commit 26a488d

Please sign in to comment.