From cb23f21ecc921c44add2ba3a3475bed3542d52e6 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 7 Jan 2024 03:54:50 -0500 Subject: [PATCH] fix: need to export methods for now --- interfaces/p2p.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/interfaces/p2p.go b/interfaces/p2p.go index b31a7d6..433d8de 100644 --- a/interfaces/p2p.go +++ b/interfaces/p2p.go @@ -14,9 +14,9 @@ type P2PService interface { Stop() error Init() error ConnectToNode(connectionUris []*url.URL, retried bool) error - onNewPeer(peer *net.Peer, verifyId bool) error - onNewPeerListen(peer *net.Peer, verifyId bool) - readNodeScore(nodeId *encoding.NodeId) (NodeVotes, error) - getNodeScore(nodeId *encoding.NodeId) (float64, error) + OnNewPeer(peer *net.Peer, verifyId bool) error + OnNewPeerListen(peer *net.Peer, verifyId bool) + ReadNodeScore(nodeId *encoding.NodeId) (NodeVotes, error) + GetNodeScore(nodeId *encoding.NodeId) (float64, error) SortNodesByScore(nodes []*encoding.NodeId) ([]*encoding.NodeId, error) }