Skip to content

Commit

Permalink
apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
1e16miin committed Aug 22, 2024
1 parent ab44b84 commit 97022a3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/com/walmartlabs/lacinia.clj
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@
(seq validation-errors)
(resolve/resolve-as {:errors validation-errors})

:let [complexity-warning (when (:max-complexity options)
(complexity-analysis/complexity-analysis prepared options))]

:else (executor/execute-query (assoc context constants/parsed-query-key prepared
:complexity-warning complexity-warning
:else (let [complexity-warning (when (:max-complexity options)
(complexity-analysis/complexity-analysis prepared options))]
(executor/execute-query (assoc context constants/parsed-query-key prepared
:complexity-warning complexity-warning
::tracing/validation {:start-offset start-offset
:duration (tracing/duration start-nanos)})))))
:duration (tracing/duration start-nanos)}))))))

(defn execute-parsed-query
"Prepares a query, by applying query variables to it, resulting in a prepared
Expand Down

0 comments on commit 97022a3

Please sign in to comment.