Fix: gob: type not registered for interface: network.Direction

This commit is contained in:
yeying 2025-08-16 16:01:08 +08:00
parent 94ecfea860
commit f20eeec0cc

View File

@ -168,7 +168,7 @@ func (ps *WakuPeerstoreImpl) Direction(p peer.ID) (network.Direction, error) {
return network.DirUnknown, err return network.DirUnknown, err
} }
return result.(network.Direction), nil return network.Direction(result.(int)), nil
} }
// AddPubSubTopic adds a new pubSubTopic for a peer // AddPubSubTopic adds a new pubSubTopic for a peer