Commit 3e7dce29 authored by vyzo's avatar vyzo

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

License: MIT
Signed-off-by: default avatarvyzo <vyzo@hackzen.org>
parent 6c63cec7
...@@ -109,6 +109,9 @@ func Transport(iaddr IPFSAddr) (maddr ma.Multiaddr) { ...@@ -109,6 +109,9 @@ func Transport(iaddr IPFSAddr) (maddr ma.Multiaddr) {
maddr = iaddr.Multiaddr() maddr = iaddr.Multiaddr()
// /ipfs/QmId is part of the transport address for p2p-circuit // /ipfs/QmId is part of the transport address for p2p-circuit
// TODO clean up the special case
// we need a consistent way of composing and consumig multiaddrs
// so that we don't have to do this
_, err := maddr.ValueForProtocol(circuit.P_CIRCUIT) _, err := maddr.ValueForProtocol(circuit.P_CIRCUIT)
if err == nil { if err == nil {
return maddr return maddr
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment