mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
Update service.go
This commit is contained in:
parent
52791a1a7b
commit
f485b23602
1 changed files with 0 additions and 2 deletions
|
|
@ -33,8 +33,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// maxQueryDepth limits the maximum field nesting depth allowed in GraphQL queries.
|
// maxQueryDepth limits the maximum field nesting depth allowed in GraphQL queries.
|
||||||
// Without this bound, deeply nested queries could exhaust resources and lead to DoS.
|
|
||||||
// See https://github.com/ethereum/go-ethereum/issues/26026 for more details.
|
|
||||||
const maxQueryDepth = 20
|
const maxQueryDepth = 20
|
||||||
|
|
||||||
type handler struct {
|
type handler struct {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue