1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 02:30:39 +08:00

Peerstore fix (ptr to iface)

This commit is contained in:
Juan Batiz-Benet
2014-09-21 03:46:54 -07:00
committed by Brian Tiger Chow
parent 81b4b38140
commit b30dd47aa3

View File

@ -36,7 +36,7 @@ type IpfsNode struct {
Identity *peer.Peer Identity *peer.Peer
// storage for other Peer instances // storage for other Peer instances
Peerstore *peer.Peerstore Peerstore peer.Peerstore
// the local datastore // the local datastore
Datastore ds.Datastore Datastore ds.Datastore
@ -135,7 +135,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
return &IpfsNode{ return &IpfsNode{
Config: cfg, Config: cfg,
Peerstore: &peerstore, Peerstore: peerstore,
Datastore: d, Datastore: d,
Blocks: bs, Blocks: bs,
DAG: dag, DAG: dag,