mirror of https://github.com/waku-org/js-waku.git
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);
|
const reply = historyRpcQuery.decode(bytes);
|
||||||
|
|
||||||
if (!reply.response) {
|
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;
|
const response = reply.response as protoV2Beta4.HistoryResponse;
|
||||||
|
|
Loading…
Reference in New Issue