lib/graphql/dataloader/request.rb in graphql-1.12.3 vs lib/graphql/dataloader/request.rb in graphql-1.12.4
- old
+ new
@@ -10,15 +10,10 @@
# Call this method to cause the current Fiber to wait for the results of this request.
#
# @return [Object] the object loaded for `key`
def load
- if @source.results.key?(@key)
- @source.results[@key]
- else
- @source.sync
- @source.results[@key]
- end
+ @source.load(@key)
end
end
end
end