mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
simplify deadline error
This commit is contained in:
parent
b05fbc1868
commit
e203026c4d
1 changed files with 0 additions and 5 deletions
|
|
@ -1702,11 +1702,6 @@ func (api *TransactionAPI) SendRawTransactionSync(ctx context.Context, input hex
|
||||||
hash: hash,
|
hash: hash,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Otherwise, bubble the caller's context error (canceled or deadline).
|
|
||||||
if err := ctx.Err(); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
// Fallback: return the derived context's error.
|
|
||||||
return nil, receiptCtx.Err()
|
return nil, receiptCtx.Err()
|
||||||
|
|
||||||
case err, ok := <-subErrCh:
|
case err, ok := <-subErrCh:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue