avoid a memory by not attaching jobs to a one time use gun instance
This commit is contained in:
parent
c6f8e37c5f
commit
f90331fcfa
1 changed files with 0 additions and 3 deletions
|
|
@ -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.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue