File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed
Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -50,23 +50,6 @@ var protocolsByCode = map[int]Protocol{}
5050// Protocols is the list of multiaddr protocols supported by this module.
5151var Protocols = []Protocol {}
5252
53- // SwapToP2pMultiaddrs is a function to make the transition from /ipfs/...
54- // multiaddrs to /p2p/... multiaddrs easier
55- // The first stage of the rollout is to ship this package to all users so
56- // that all users of multiaddr can parse both /ipfs/ and /p2p/ multiaddrs
57- // as the same code (P_P2P). During this stage of the rollout, all addresses
58- // with P_P2P will continue printing as /ipfs/, so that older clients without
59- // the new parsing code won't break.
60- // Once the network has adopted the new parsing code broadly enough, users of
61- // multiaddr can add a call to this method to an init function in their codebase.
62- // This will cause any P_P2P multiaddr to print out as /p2p/ instead of /ipfs/.
63- // Note that the binary serialization of this multiaddr does not change at any
64- // point. This means that this code is not a breaking network change at any point
65- //
66- // DEPRECATED: this is now the default
67- func SwapToP2pMultiaddrs () {
68- }
69-
7053func AddProtocol (p Protocol ) error {
7154 if _ , ok := protocolsByName [p .Name ]; ok {
7255 return fmt .Errorf ("protocol by the name %q already exists" , p .Name )
You can’t perform that action at this time.
0 commit comments