From a5cc5b3d9e37e4e370f3fca1efe9b83427986a0f Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 5 Jan 2024 10:50:22 -0500 Subject: [PATCH] refactor: rename NodeIdDecode for readability --- encoding/nodeid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding/nodeid.go b/encoding/nodeid.go index db30639..7e0ab1b 100644 --- a/encoding/nodeid.go +++ b/encoding/nodeid.go @@ -22,7 +22,7 @@ func NewNodeId(bytes []byte) *NodeId { return &NodeId{Bytes: bytes} } -func NodeIdDecode(nodeId string) (*NodeId, error) { +func DecodeNodeId(nodeId string) (*NodeId, error) { encoding, ret, err := multibase.Decode(nodeId) if err != nil { return nil, err