Make SmartSource header less verbose.

PostgreSQL NOTIFY has an 8,000 bytes payload limit
and we were going over that.
This commit is contained in:
D. Berge
2020-09-03 23:06:01 +02:00
parent 1a851fefdf
commit a253578a1b

View File

@@ -220,9 +220,9 @@ function parse (buffer) {
smartsource.guns = [];
for (let n=0; n<smartsource.num_guns; n++) {
const gunItem = {};
const gunItem = [];
for (const key of Object.keys(gun)) {
gunItem[key] = gun[key](buffer, gunItem);
gunItem.push(gun[key](buffer, gunItem));
}
smartsource.guns.push(gunItem);
}