From 94ecfea860bd210e277cc6871e28510edf2fb2e6 Mon Sep 17 00:00:00 2001 From: yeying Date: Sat, 16 Aug 2025 15:07:35 +0800 Subject: [PATCH] Fix: gob: type not registered for interface: network.Direction --- waku/v2/peerstore/waku_peer_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waku/v2/peerstore/waku_peer_store.go b/waku/v2/peerstore/waku_peer_store.go index af42a28a..9dbb6b8a 100644 --- a/waku/v2/peerstore/waku_peer_store.go +++ b/waku/v2/peerstore/waku_peer_store.go @@ -158,7 +158,7 @@ func (ps *WakuPeerstoreImpl) ConnFailures(pID peer.ID) int { // SetDirection sets connection direction for a specific peer. func (ps *WakuPeerstoreImpl) SetDirection(p peer.ID, direction network.Direction) error { - return ps.peerStore.Put(p, peerDirection, direction) + return ps.peerStore.Put(p, peerDirection, int(direction)) } // Direction fetches the connection direction (Inbound or outBound) for a specific peer