mirror of
https://github.com/unraid/api.git
synced 2026-04-26 09:18:19 -05:00
fix(module:graphql/schema/resolvers): remove unneeded await
Without the `await` the `subscribe` function can return instantly and just wait for replies on the returned `asyncIterator`. BREAKING CHANGE: Reduces CPU usage when on my_servers.
This commit is contained in:
@@ -116,7 +116,7 @@ module.exports = function ($injector, GraphQLJSON, GraphQLLong, GraphQLUUID, pub
|
||||
const createBasicSubscription = (name, moduleToRun) => {
|
||||
return {
|
||||
subscribe: async () => {
|
||||
await run(name, 'UPDATED', {
|
||||
run(name, 'UPDATED', {
|
||||
moduleToRun,
|
||||
forever: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user