mirror of
https://github.com/logos-messaging/logos-messaging-go-bindings.git
synced 2026-01-02 14:03:10 +00:00
adding comment
This commit is contained in:
parent
c1f42468f2
commit
5434d967e9
@ -560,7 +560,7 @@ func unregisterNode(node *WakuNode) {
|
||||
func globalEventCallback(callerRet C.int, msg *C.char, len C.size_t, userData unsafe.Pointer) {
|
||||
if callerRet == C.RET_OK {
|
||||
eventStr := C.GoStringN(msg, C.int(len))
|
||||
node, ok := nodeRegistry[userData]
|
||||
node, ok := nodeRegistry[userData] // userData contains node's ctx
|
||||
if ok {
|
||||
node.OnEvent(eventStr)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user