Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
90a6977b
Commit
90a6977b
authored
Mar 28, 2016
by
Jeromy
Browse files
fix accidental find and replace fail
parent
c9ef94cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/peer/peer.go
View file @
90a6977b
...
@@ -41,7 +41,7 @@ func (id ID) String() string {
...
@@ -41,7 +41,7 @@ func (id ID) String() string {
//All sha256 nodes start with Qm
//All sha256 nodes start with Qm
//We can skip the Qm to make the peer.ID more useful
//We can skip the Qm to make the peer.ID more useful
if
strings
.
HasPrefix
(
pid
,
"
gx/
Qm"
)
{
if
strings
.
HasPrefix
(
pid
,
"Qm"
)
{
pid
=
pid
[
2
:
]
pid
=
pid
[
2
:
]
}
}
...
...
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