Skip to content

Commit

Permalink
ua/node_id: use b= prefix for opaque node ids
Browse files Browse the repository at this point in the history
  • Loading branch information
magiconair committed Dec 3, 2021
1 parent 0c71b64 commit aa74528
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ua/node_id.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ func (n *NodeID) String() string {

case NodeIDTypeByteString:
if n.ns == 0 {
return fmt.Sprintf("o=%s", n.StringID())
return fmt.Sprintf("b=%s", n.StringID())
}
return fmt.Sprintf("ns=%d;o=%s", n.ns, n.StringID())
return fmt.Sprintf("ns=%d;b=%s", n.ns, n.StringID())

default:
panic(fmt.Sprintf("invalid node id type: %d", n.Type()))
Expand Down

0 comments on commit aa74528

Please sign in to comment.