diff --git a/interfaces/node.go b/interfaces/node.go index 6ee921b..d5dfdf6 100644 --- a/interfaces/node.go +++ b/interfaces/node.go @@ -22,7 +22,7 @@ type Node interface { Db() *bolt.DB Start() error GetCachedStorageLocations(hash *encoding.Multihash, kinds []types.StorageLocationType) (map[string]StorageLocation, error) - AddStorageLocation(hash *encoding.Multihash, nodeId *encoding.NodeId, location StorageLocation, message []byte, config *config.NodeConfig) error + AddStorageLocation(hash *encoding.Multihash, nodeId *encoding.NodeId, location StorageLocation, message []byte) error NetworkId() string DownloadBytesByHash(hash *encoding.Multihash) ([]byte, error) DownloadBytesByCID(cid *encoding.CID) (bytes []byte, err error) diff --git a/node/node.go b/node/node.go index 553175f..6a3f893 100644 --- a/node/node.go +++ b/node/node.go @@ -189,7 +189,7 @@ func (n *NodeImpl) readStorageLocationsFromDB(hash *encoding.Multihash) (storage return locationMap, nil } -func (n *NodeImpl) AddStorageLocation(hash *encoding.Multihash, nodeId *encoding.NodeId, location interfaces.StorageLocation, message []byte, config *config.NodeConfig) error { +func (n *NodeImpl) AddStorageLocation(hash *encoding.Multihash, nodeId *encoding.NodeId, location interfaces.StorageLocation, message []byte) error { // Read existing storage locations locationDb, err := n.readStorageLocationsFromDB(hash) if err != nil {