Skip to content

Commit ba2712d

Browse files
committed
Fix initialization; rebuild snapshot
1 parent fc40677 commit ba2712d

File tree

2 files changed

+2
-86
lines changed

2 files changed

+2
-86
lines changed

lib/graphql/dataloader/async_dataloader.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ def yield(source = Fiber[:__graphql_current_dataloader_source])
1515
end
1616

1717
def run(trace_query_lazy: nil)
18+
# TODO unify the initialization lazies_at_depth
19+
@lazies_at_depth ||= Hash.new { |h, k| h[k] = [] }
1820
trace = Fiber[:__graphql_current_multiplex]&.current_trace
1921
jobs_fiber_limit, total_fiber_limit = calculate_fiber_limit
2022
job_fibers = []

spec/graphql/dataloader/snapshots/example.json

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -2610,92 +2610,6 @@
26102610
},
26112611
"sequenceFlags": 101010101010
26122612
},
2613-
{
2614-
"timestamp": "10101010101010",
2615-
"trustedPacketSequenceId": 101010101010,
2616-
"trackEvent": {
2617-
"type": "TYPE_COUNTER",
2618-
"trackUuid": "10101010101010",
2619-
"counterValue": "10101010101010"
2620-
},
2621-
"sequenceFlags": 101010101010
2622-
},
2623-
{
2624-
"trustedPacketSequenceId": 101010101010,
2625-
"sequenceFlags": 101010101010,
2626-
"trackDescriptor": {
2627-
"uuid": "10101010101010",
2628-
"name": "Dataloader Fiber #1010",
2629-
"parentUuid": "10101010101010",
2630-
"childOrdering": "CHRONOLOGICAL"
2631-
}
2632-
},
2633-
{
2634-
"timestamp": "10101010101010",
2635-
"trustedPacketSequenceId": 101010101010,
2636-
"trackEvent": {
2637-
"categories": [
2638-
"Dataloader"
2639-
],
2640-
"categoryIids": [
2641-
"10101010101010"
2642-
],
2643-
"type": "TYPE_INSTANT",
2644-
"trackUuid": "10101010101010",
2645-
"extraCounterValues": [
2646-
"10101010101010",
2647-
"10101010101010"
2648-
],
2649-
"name": "Create Execution Fiber",
2650-
"extraCounterTrackUuids": [
2651-
"10101010101010",
2652-
"10101010101010"
2653-
]
2654-
},
2655-
"sequenceFlags": 101010101010
2656-
},
2657-
{
2658-
"trustedPacketSequenceId": 101010101010,
2659-
"sequenceFlags": 101010101010,
2660-
"trackDescriptor": {
2661-
"uuid": "10101010101010",
2662-
"name": "Exec Fiber #1010",
2663-
"parentUuid": "10101010101010",
2664-
"childOrdering": "CHRONOLOGICAL"
2665-
}
2666-
},
2667-
{
2668-
"timestamp": "10101010101010",
2669-
"trustedPacketSequenceId": 101010101010,
2670-
"trackEvent": {
2671-
"categories": [
2672-
"Dataloader"
2673-
],
2674-
"categoryIids": [
2675-
"10101010101010"
2676-
],
2677-
"type": "TYPE_INSTANT",
2678-
"trackUuid": "10101010101010",
2679-
"extraCounterValues": [
2680-
"10101010101010"
2681-
],
2682-
"name": "Fiber Exit",
2683-
"extraCounterTrackUuids": [
2684-
"10101010101010"
2685-
]
2686-
},
2687-
"sequenceFlags": 101010101010
2688-
},
2689-
{
2690-
"timestamp": "10101010101010",
2691-
"trustedPacketSequenceId": 101010101010,
2692-
"trackEvent": {
2693-
"type": "TYPE_COUNTER",
2694-
"trackUuid": "10101010101010",
2695-
"counterValue": "10101010101010"
2696-
},
2697-
"sequenceFlags": 101010101010
2698-
},
26992613
{
27002614
"timestamp": "10101010101010",
27012615
"trustedPacketSequenceId": 101010101010,

0 commit comments

Comments
 (0)