mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 21:07:45 +08:00
fix(core) return value assignment init identity
@jbenet let me know if i was wrong about this being a bug
This commit is contained in:
parent
a2f321f0f6
commit
b7fb545c2a
@ -200,7 +200,7 @@ func initIdentity(cfg *config.Identity, peers peer.Peerstore, online bool) (p pe
|
||||
}
|
||||
|
||||
var id2 peer.ID
|
||||
id2, err = peer.IDFromPrivateKey(sk)
|
||||
id2, err = peer.IDFromPrivateKey(sk2)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user