mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "graphql: fix nil deref on a timer (#27978)"
This reverts commit 8c74940ebf.
This commit is contained in:
parent
89b1a788b5
commit
383c2aa6c0
1 changed files with 1 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue