mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
print out parent ctx deadline
This commit is contained in:
parent
13bd05640e
commit
bff1b017ba
1 changed files with 2 additions and 0 deletions
|
|
@ -1033,6 +1033,8 @@ func (api *API) traceTx(ctx context.Context, tx *types.Transaction, message *cor
|
|||
}
|
||||
}
|
||||
fmt.Printf("[JEREMYDEBUG] In traceTx, timeout: %d\n", timeout)
|
||||
deadline, _ := ctx.Deadline()
|
||||
fmt.Printf("[JEREMYDEBUG] In traceTx, ctx deadline: %v, current time: %v\n", deadline, time.Now())
|
||||
deadlineCtx, cancel := context.WithTimeout(ctx, timeout)
|
||||
go func() {
|
||||
<-deadlineCtx.Done()
|
||||
|
|
|
|||
Loading…
Reference in a new issue