File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,14 @@ use signet_sim::SimCache;
1111use signet_types:: SlotCalculator ;
1212use std:: sync:: Arc ;
1313use tokio:: select;
14+ use tracing:: info_span;
1415
1516// Note: Must be set to `multi_thread` to support async tasks.
1617// See: https://docs.rs/tokio/latest/tokio/attr.main.html
1718#[ tokio:: main( flavor = "multi_thread" ) ]
1819async fn main ( ) -> eyre:: Result < ( ) > {
1920 let _guard = init4_bin_base:: init4 ( ) ;
20- let init_span_guard = tracing :: info_span!( "builder initialization" ) ;
21+ let init_span_guard = info_span ! ( "builder initialization" ) ;
2122
2223 let config = BuilderConfig :: load_from_env ( ) ?. clone ( ) ;
2324 let constants = config. load_pecorino_constants ( ) ;
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use signet_bundle::SignetEthBundle;
77use tokio:: sync:: mpsc:: { UnboundedReceiver , UnboundedSender , unbounded_channel} ;
88use tokio:: task:: JoinHandle ;
99use tokio:: time;
10- use tracing:: { Instrument , debug, trace} ;
10+ use tracing:: { Instrument , debug, trace, warn } ;
1111
1212pub use crate :: config:: BuilderConfig ;
1313
@@ -60,7 +60,7 @@ impl BundlePoller {
6060 pub async fn check_bundle_cache ( & mut self ) -> eyre:: Result < Vec < Bundle > > {
6161 let bundle_url: Url = Url :: parse ( & self . config . tx_pool_url ) ?. join ( "bundles" ) ?;
6262 let Some ( token) = self . token . read ( ) else {
63- tracing :: warn!( "No token available, skipping bundle fetch" ) ;
63+ warn ! ( "No token available, skipping bundle fetch" ) ;
6464 return Ok ( vec ! [ ] ) ;
6565 } ;
6666
Original file line number Diff line number Diff line change @@ -73,17 +73,15 @@ pub struct SubmitTask {
7373}
7474
7575impl SubmitTask {
76+ #[ instrument( skip( self ) ) ]
7677 async fn sup_quincey ( & self , sig_request : & SignRequest ) -> eyre:: Result < SignResponse > {
7778 tracing:: info!(
7879 host_block_number = %sig_request. host_block_number,
7980 ru_chain_id = %sig_request. ru_chain_id,
8081 "pinging quincey for signature"
8182 ) ;
8283
83- let Some ( token) = self . token . read ( ) else {
84- tracing:: error!( "no token available" ) ;
85- return Err ( eyre ! ( "no token available" ) ) ;
86- } ;
84+ let Some ( token) = self . token . read ( ) else { bail ! ( "no token available" ) } ;
8785
8886 let resp: reqwest:: Response = self
8987 . client
You can’t perform that action at this time.
0 commit comments