mirror of
https://github.com/waku-org/js-waku.git
synced 2025-01-13 05:54:54 +00:00
fix: do not throw on lack of response
Expected proto3 behaviour, just no message returned.
This commit is contained in:
parent
28cb144b23
commit
ecb5b490e3
@ -216,7 +216,7 @@ export class WakuStore {
|
||||
const reply = historyRpcQuery.decode(bytes);
|
||||
|
||||
if (!reply.response) {
|
||||
throw "History response misses response field";
|
||||
dbg("No message returned from store: `response` field missing");
|
||||
}
|
||||
|
||||
const response = reply.response as protoV2Beta4.HistoryResponse;
|
||||
|
Loading…
x
Reference in New Issue
Block a user