From c055c2fc03f2bfd7c996e13a4575a2d30ac3b910 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Mon, 13 Sep 2021 10:21:18 -0400 Subject: [PATCH] Do not unnecessarily send whole ack --- utils/GunSmith/gun.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/GunSmith/gun.js b/utils/GunSmith/gun.js index c71c0f2b..bea2a118 100644 --- a/utils/GunSmith/gun.js +++ b/utils/GunSmith/gun.js @@ -179,7 +179,9 @@ const handleMsg = msg => { node.put(msg.data, ack => { /** @type {Smith.GunMsgPut} */ const reply = { - ack, + ack: { + err: ack.err + }, id: msg.id, path: msg.path, type: 'put'