@cryptotaxi247 / kubo / commits / 1ed0850ce

style(core) peer -> self

Brian Tiger Chow committed Nov 11, 2014 at 15:19 UTC 1ed0850ce220c630b61d7890d4b587de930cc30c
1 file changed +3 -3
core/core.go
+3 -3
@@ -207,7 +207,7 @@ func initIdentity(cfg *config.Config, peers peer.Peerstore, online bool) (peer.P
207
208 // get peer from peerstore (so it is constructed there)
209 id := peer.ID(b58.Decode(cfg.Identity.PeerID))
210 - peer, err := peers.Get(id)
210 + self, err := peers.Get(id)
211 if err != nil {
212 return nil, err
213 }
@@ -219,12 +219,12 @@ func initIdentity(cfg *config.Config, peers peer.Peerstore, online bool) (peer.P
219 return nil, err
220 }
221
222 - if err := peer.LoadAndVerifyKeyPair(skb); err != nil {
222 + if err := self.LoadAndVerifyKeyPair(skb); err != nil {
223 return nil, err
224 }
225 }
226
227 - return peer, nil
227 + return self, nil
228 }
229
230 func initConnections(ctx context.Context, cfg *config.Config, pstore peer.Peerstore, route *dht.IpfsDHT) {