mirror of
https://github.com/logos-messaging/logos-messaging-go.git
synced 2026-01-04 06:53:06 +00:00
Fix: gob: type not registered for interface: network.Direction
This commit is contained in:
parent
d6b9120de3
commit
94ecfea860
@ -158,7 +158,7 @@ func (ps *WakuPeerstoreImpl) ConnFailures(pID peer.ID) int {
|
|||||||
|
|
||||||
// SetDirection sets connection direction for a specific peer.
|
// SetDirection sets connection direction for a specific peer.
|
||||||
func (ps *WakuPeerstoreImpl) SetDirection(p peer.ID, direction network.Direction) error {
|
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
|
// Direction fetches the connection direction (Inbound or outBound) for a specific peer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user