File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
tesseract/messaging/evm/src Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -193,15 +193,13 @@ pub async fn wait_for_transaction_receipt(
193193) -> anyhow:: Result < Option < TransactionReceipt > > {
194194 let provider = client. client . clone ( ) ;
195195 let poll_interval = Duration :: from_secs ( 7 ) ;
196- let deadline = tokio:: time:: Instant :: now ( ) + Duration :: from_secs ( 5 * 60 ) ;
196+ let start = tokio:: time:: Instant :: now ( ) ;
197+ let deadline = start + Duration :: from_secs ( 5 * 60 ) ;
197198
198199 loop {
199200 match provider. get_transaction_receipt ( B256 :: from_slice ( & tx_hash. 0 ) ) . await {
200201 Ok ( Some ( receipt) ) => {
201- tracing:: trace!(
202- "Receipt available after {:?}" ,
203- tokio:: time:: Instant :: now( ) - deadline
204- ) ;
202+ tracing:: trace!( "Receipt available after {:?}" , start. elapsed( ) ) ;
205203 return Ok ( Some ( receipt) ) ;
206204 } ,
207205 Ok ( None ) => tracing:: trace!( "Receipt not yet available, retrying in 7s" ) ,
You can’t perform that action at this time.
0 commit comments