mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 18:13:54 +08:00
Peerstore fix (ptr to iface)
This commit is contained in:

committed by
Brian Tiger Chow

parent
81b4b38140
commit
b30dd47aa3
@ -36,7 +36,7 @@ type IpfsNode struct {
|
||||
Identity *peer.Peer
|
||||
|
||||
// storage for other Peer instances
|
||||
Peerstore *peer.Peerstore
|
||||
Peerstore peer.Peerstore
|
||||
|
||||
// the local datastore
|
||||
Datastore ds.Datastore
|
||||
@ -135,7 +135,7 @@ func NewIpfsNode(cfg *config.Config, online bool) (*IpfsNode, error) {
|
||||
|
||||
return &IpfsNode{
|
||||
Config: cfg,
|
||||
Peerstore: &peerstore,
|
||||
Peerstore: peerstore,
|
||||
Datastore: d,
|
||||
Blocks: bs,
|
||||
DAG: dag,
|
||||
|
Reference in New Issue
Block a user