From ba00e1551811f8b05caddcc54f548815e450de1c Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 24 Jan 2024 03:37:14 -0500 Subject: [PATCH] fix: AddStorageLocation no longer needs config --- protocol/storage_location.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/storage_location.go b/protocol/storage_location.go index f74f190..c92672d 100644 --- a/protocol/storage_location.go +++ b/protocol/storage_location.go @@ -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)