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
1ed0850c
Commit
1ed0850c
authored
Nov 11, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style(core) peer -> self
parent
027de284
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
core/core.go
core/core.go
+3
-3
No files found.
core/core.go
View file @
1ed0850c
...
...
@@ -207,7 +207,7 @@ func initIdentity(cfg *config.Config, peers peer.Peerstore, online bool) (peer.P
// get peer from peerstore (so it is constructed there)
id
:=
peer
.
ID
(
b58
.
Decode
(
cfg
.
Identity
.
PeerID
))
peer
,
err
:=
peers
.
Get
(
id
)
self
,
err
:=
peers
.
Get
(
id
)
if
err
!=
nil
{
return
nil
,
err
}
...
...
@@ -219,12 +219,12 @@ func initIdentity(cfg *config.Config, peers peer.Peerstore, online bool) (peer.P
return
nil
,
err
}
if
err
:=
peer
.
LoadAndVerifyKeyPair
(
skb
);
err
!=
nil
{
if
err
:=
self
.
LoadAndVerifyKeyPair
(
skb
);
err
!=
nil
{
return
nil
,
err
}
}
return
peer
,
nil
return
self
,
nil
}
func
initConnections
(
ctx
context
.
Context
,
cfg
*
config
.
Config
,
pstore
peer
.
Peerstore
,
route
*
dht
.
IpfsDHT
)
{
...
...
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