Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
3e7dce29
Commit
3e7dce29
authored
Jul 29, 2017
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ipfsaddr: add TODO comment to clean up p2p-circuit special case
License: MIT Signed-off-by:
vyzo
<
vyzo@hackzen.org
>
parent
6c63cec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
thirdparty/ipfsaddr/ipfsaddr.go
thirdparty/ipfsaddr/ipfsaddr.go
+3
-0
No files found.
thirdparty/ipfsaddr/ipfsaddr.go
View file @
3e7dce29
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment