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{}
50
50
// Protocols is the list of multiaddr protocols supported by this module.
51
51
var Protocols = []Protocol {}
52
52
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
-
70
53
func AddProtocol (p Protocol ) error {
71
54
if _ , ok := protocolsByName [p .Name ]; ok {
72
55
return fmt .Errorf ("protocol by the name %q already exists" , p .Name )
You can’t perform that action at this time.
0 commit comments