Ignore empty events in mon

non-odp-rdma
Vitaliy Filippov 2022-01-08 11:40:56 +03:00
parent 4a9f001d9e
commit 8f64fc61e7
1 changed files with 1 additions and 1 deletions

View File

@ -590,7 +590,7 @@ class Mon
console.log('Revision '+data.result.header.revision+' events: ');
}
this.etcd_watch_revision = BigInt(data.result.header.revision)+BigInt(1);
for (const e of data.result.events)
for (const e of data.result.events||[])
{
this.parse_kv(e.kv);
const key = e.kv.key.substr(this.etcd_prefix.length);