From 53b981cb21b276538a279f0b278b5ba19027c6f3 Mon Sep 17 00:00:00 2001 From: Sudo-Ivan Date: Tue, 30 Dec 2025 12:32:55 -0600 Subject: [PATCH] refactor: remove unused hops parameter from ReceivedAnnounce method in WASM handler --- pkg/wasm/wasm.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/wasm/wasm.go b/pkg/wasm/wasm.go index 94eb44b..d9c2ac7 100644 --- a/pkg/wasm/wasm.go +++ b/pkg/wasm/wasm.go @@ -297,13 +297,12 @@ func (h *announceHandler) ReceivePathResponses() bool { return false } -func (h *announceHandler) ReceivedAnnounce(destHash []byte, ident interface{}, appData []byte, hops uint8) error { +func (h *announceHandler) ReceivedAnnounce(destHash []byte, ident interface{}, appData []byte) error { hashStr := hex.EncodeToString(destHash) peerMap[hashStr] = string(appData) js.Global().Call("onPeerDiscovered", js.ValueOf(map[string]interface{}{ "hash": hashStr, "appData": string(appData), - "hops": int(hops), })) return nil }