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:
Alexis Tyler
2019-10-17 16:28:11 +10:30
parent f07cc2e5d9
commit 8b1dd10446
+1 -1
View File
@@ -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
});