Revert "graphql: fix nil deref on a timer (#27978)"

This reverts commit 8c74940ebf.
This commit is contained in:
devopsbo3 2023-11-10 12:27:53 -06:00 committed by GitHub
parent 89b1a788b5
commit 383c2aa6c0

View file

@ -88,9 +88,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
response := h.Schema.Exec(ctx, params.Query, params.OperationName, params.Variables)
if timer != nil {
timer.Stop()
}
responded.Do(func() {
responseJSON, err := json.Marshal(response)
if err != nil {