[BUG] Idempotency when receiving the answer to a query that has already been answered #1709
Closed
2 of 6 tasks
Labels
be1-go
bug
Something isn't working
decentralized
Decentralized Communication Project
good first issue
Good for newcomers
Description (Actual behavior)
Currently, when we receive the answer to a query twice, we return an error to the peer the second time.
Expected behavior
This is not useful since the peers only log the errors they receive and we don't expect anything in return. It is enough to log it.
How to reproduce
This issue was first discussed in #1694
Front-ends:
Back-ends:
Impact
This doesn't cause any issue, at least between two go servers, as they just log the errors that they receive.
Possible root cause
The error originates from the
Queries.go
SetQueryReceived
function and propagates all the way to the socket. We should log the error instead of sending it back.The text was updated successfully, but these errors were encountered: