Skip to content

Commit

Permalink
Move FetchData callback to the BeforeExecutionStepAwaitedAsync overri…
Browse files Browse the repository at this point in the history
…de to avoid dead-locking of the DataLoader (#109)
  • Loading branch information
huysentruitw authored and Tommy Lillehagen committed Oct 15, 2018
1 parent f7fed7b commit 35ef2ab
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ namespace GraphQL.Conventions.Adapters.Engine.Listeners.DataLoader
{
class DataLoaderListener : DocumentExecutionListenerBase<IDataLoaderContextProvider>
{
public override async Task BeforeExecutionAwaitedAsync(
public override async Task BeforeExecutionStepAwaitedAsync(
IDataLoaderContextProvider userContext,
CancellationToken token)
{
await userContext.FetchData(token).ConfigureAwait(false);
}
}
}
}

0 comments on commit 35ef2ab

Please sign in to comment.