fix: AddStorageLocation no longer needs config

This commit is contained in:
Derrick Hammer 2024-01-24 03:37:14 -05:00
parent 96be8235f9
commit ba00e15518
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ func (s *StorageLocation) HandleMessage(node interfaces.Node, peer net.Peer, ver
nodeId := encoding.NewNodeId(publicKey)
// 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 {
return fmt.Errorf("Failed to add storage location: %s", err)