Skip to content

Commit d00fbc4

Browse files
remove deprecated SwapToP2pMultiaddrs
1 parent c693710 commit d00fbc4

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

protocol.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,6 @@ var protocolsByCode = map[int]Protocol{}
5050
// Protocols is the list of multiaddr protocols supported by this module.
5151
var 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-
7053
func AddProtocol(p Protocol) error {
7154
if _, ok := protocolsByName[p.Name]; ok {
7255
return fmt.Errorf("protocol by the name %q already exists", p.Name)

0 commit comments

Comments
 (0)