@cryptotaxi247 / kubo / commits / 3e7dce295

ipfsaddr: add TODO comment to clean up p2p-circuit special case

License: MIT Signed-off-by: vyzo <vyzo@hackzen.org>

vyzo committed Jul 29, 2017 at 23:37 UTC 3e7dce295c26eb7e55c48bb90c72decd0f6e585c
1 file changed +3
thirdparty/ipfsaddr/ipfsaddr.go
+3
@@ -109,6 +109,9 @@ func Transport(iaddr IPFSAddr) (maddr ma.Multiaddr) {
109 maddr = iaddr.Multiaddr()
110
111 // /ipfs/QmId is part of the transport address for p2p-circuit
112 + // TODO clean up the special case
113 + // we need a consistent way of composing and consumig multiaddrs
114 + // so that we don't have to do this
115 _, err := maddr.ValueForProtocol(circuit.P_CIRCUIT)
116 if err == nil {
117 return maddr