fix: AddStorageLocation no longer needs config
This commit is contained in:
parent
96be8235f9
commit
ba00e15518
|
@ -78,7 +78,7 @@ func (s *StorageLocation) HandleMessage(node interfaces.Node, peer net.Peer, ver
|
||||||
nodeId := encoding.NewNodeId(publicKey)
|
nodeId := encoding.NewNodeId(publicKey)
|
||||||
|
|
||||||
// Assuming `node` is an instance of your NodeImpl structure
|
// Assuming `node` is an instance of your NodeImpl structure
|
||||||
err := node.AddStorageLocation(hash, nodeId, storage.NewStorageLocation(int(typeOfData), parts, int64(expiry)), msg, node.Config()) // Implement AddStorageLocation
|
err := node.AddStorageLocation(hash, nodeId, storage.NewStorageLocation(int(typeOfData), parts, int64(expiry)), msg) // Implement AddStorageLocation
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to add storage location: %s", err)
|
return fmt.Errorf("Failed to add storage location: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue