-
-
Notifications
You must be signed in to change notification settings - Fork 20
feat: allow multiple calls in parallel #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
"dependencies": { | ||
"tough-cookie": "^4.1.3", | ||
"axios": "1.7.4", | ||
"axios": "^1.7.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor update.
site = msg.payload.site; | ||
} else { | ||
site = server.site; | ||
if (msg.payload) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoiding crash if there is no payload in message
} | ||
|
||
let { username, password, site, ip, port, unifios, ssl } = server; | ||
let { command } = config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This variable was not used, so I removed it.
} | ||
|
||
let { username, password, site, ip, port, unifios, ssl } = server; | ||
let { command, debug } = config; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As it was declared at parent scope, parallel calls overrode the same variable.
Hello. |
Hello, I propose this PR to allow multiple calls in parallel (in case using split/join nodes).
I've also slightly modified the code to allow a call without a payload.