From f90331fcfafe26d2353a2d3621326a7f1e4ebaef Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Tue, 25 Feb 2020 19:12:34 -0400 Subject: [PATCH] avoid a memory by not attaching jobs to a one time use gun instance --- services/gunDB/Mediator/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/gunDB/Mediator/index.js b/services/gunDB/Mediator/index.js index 34b3612b..b28867f9 100644 --- a/services/gunDB/Mediator/index.js +++ b/services/gunDB/Mediator/index.js @@ -261,9 +261,6 @@ const authenticate = async (alias, pass, user = getUser()) => { if (typeof ack.err === 'string') { throw new Error(ack.err) } else if (typeof ack.sea === 'object') { - API.Jobs.onAcceptedRequests(user, mySEA) - API.Jobs.onOrders(user, gun, mySEA) - return ack.sea.pub } else { throw new Error('Unknown error.')