Propagate request context in block REST handlers.
Some checks failed
Deploy Explorer Live / deploy (push) Failing after 24s

Use r.Context() for DB query timeouts so client disconnects cancel in-flight block lookups instead of running against a detached background context.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-06-26 02:03:24 -07:00
parent 890ebe3727
commit 206dda1580
3 changed files with 4 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ require (
github.com/mmcloughlin/addchain v0.4.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.20.5 // indirect
github.com/rogpeppe/go-internal v1.10.0 // indirect
github.com/rogpeppe/go-internal v1.11.0 // indirect
github.com/shirou/gopsutil v3.21.4-0.20210419000835-c7a38de76ee5+incompatible // indirect
github.com/supranational/blst v0.3.11 // indirect
github.com/tklauser/go-sysconf v0.3.12 // indirect