Skip to content

Commit

Permalink
fix: standardize protocol ID across all protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
kant committed Jul 17, 2024
1 parent c7c307a commit bec031c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions p2p/pkg/p2p/libp2p/libp2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (s *Service) Self() map[string]interface{} {
"Addresses": addrStrings,
}
}

func ConstructProtocolID(protocolName, protocolVersion string) protocol.ID {
return protocol.ID(fmt.Sprintf("/%s/%s", protocolName, protocolVersion))
}
Expand Down

0 comments on commit bec031c

Please sign in to comment.