refactor: rename NodeIdDecode for readability

This commit is contained in:
Derrick Hammer 2024-01-05 10:50:22 -05:00
parent d708297651
commit a5cc5b3d9e
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func NewNodeId(bytes []byte) *NodeId {
return &NodeId{Bytes: bytes} return &NodeId{Bytes: bytes}
} }
func NodeIdDecode(nodeId string) (*NodeId, error) { func DecodeNodeId(nodeId string) (*NodeId, error) {
encoding, ret, err := multibase.Decode(nodeId) encoding, ret, err := multibase.Decode(nodeId)
if err != nil { if err != nil {
return nil, err return nil, err