refactor: rename NodeIdDecode for readability
This commit is contained in:
parent
d708297651
commit
a5cc5b3d9e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue