refactor: we do not need to bother storing our own ProviderStore data as that would just duplicate any possible data coming from the ProviderStore.
This commit is contained in:
parent
73dc22a71e
commit
e6c6ea473c
|
@ -139,11 +139,6 @@ func (h *HashQuery) HandleMessage(message IncomingMessageData) error {
|
|||
|
||||
message := storage.PrepareProvideMessage(config.KeyPair, h.hash, location)
|
||||
|
||||
err = mediator.AddStorageLocation(h.hash, mediator.NodeId(), location, message)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = peer.SendMessage(message)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue