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