Log queried store peer info

This commit is contained in:
Franck Royer 2021-10-05 13:29:37 +11:00
parent 899e0c89e7
commit 62b30b3f33
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ export class WakuStore {
const { stream } = await connection.newStream(StoreCodec);
const queryOpts = Object.assign(opts, { cursor });
const historyRpcQuery = HistoryRPC.createQuery(queryOpts);
dbg('Querying store peer', connection.remoteAddr.toString());
const res = await pipe(
[historyRpcQuery.encode()],
lp.encode(),