Skip to content

Commit 238e96f

Browse files
committed
Removed Async
1 parent 70433c1 commit 238e96f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/GraphQL/GraphQL.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Async
1+
import NIO
22

33
/// This is the primary entry point function for fulfilling GraphQL operations
44
/// by parsing, validating, and executing a GraphQL document along side a
@@ -40,7 +40,7 @@ public func graphql(
4040
let validationErrors = validate(instrumentation: instrumentation, schema: schema, ast: documentAST)
4141

4242
guard validationErrors.isEmpty else {
43-
return eventLoopGroup.eventLoop.newSucceededFuture(result: ["errors": try validationErrors.asMap()])
43+
return eventLoopGroup.next().newSucceededFuture(result: ["errors": try validationErrors.asMap()])
4444
}
4545

4646
return execute(
@@ -92,7 +92,7 @@ public func graphql<Retrieval:PersistedQueryRetrieval>(
9292
case .parseError(let parseError):
9393
throw parseError
9494
case .validateErrors(_, let validationErrors):
95-
return eventLoopGroup.eventLoop.newSucceededFuture(result: ["errors": try validationErrors.asMap()])
95+
return eventLoopGroup.next().newSucceededFuture(result: ["errors": try validationErrors.asMap()])
9696
case .result(let schema, let documentAST):
9797
return execute(
9898
queryStrategy: queryStrategy,

0 commit comments

Comments
 (0)