File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
svm/examples/json-rpc/server/src Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1021,7 +1021,7 @@ impl ClusterInfo {
10211021 & ' a self ,
10221022 label : & ' static str ,
10231023 counter : & ' a Counter ,
1024- ) -> TimedGuard < ' a , RwLockReadGuard < Crds > > {
1024+ ) -> TimedGuard < ' a , RwLockReadGuard < ' a , Crds > > {
10251025 TimedGuard :: new ( self . gossip . crds . read ( ) . unwrap ( ) , label, counter)
10261026 }
10271027
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl PushActiveSet {
3434 // If true forces gossip push even if the node has pruned the origin.
3535 should_force_push : impl FnMut ( & Pubkey ) -> bool + ' a ,
3636 stakes : & HashMap < Pubkey , u64 > ,
37- ) -> impl Iterator < Item = & Pubkey > + ' a {
37+ ) -> impl Iterator < Item = & ' a Pubkey > + ' a {
3838 let stake = stakes. get ( pubkey) . min ( stakes. get ( origin) ) ;
3939 self . get_entry ( stake)
4040 . get_nodes ( pubkey, origin, should_force_push)
@@ -115,7 +115,7 @@ impl PushActiveSetEntry {
115115 origin : & ' a Pubkey , // CRDS value owner.
116116 // If true forces gossip push even if the node has pruned the origin.
117117 mut should_force_push : impl FnMut ( & Pubkey ) -> bool + ' a ,
118- ) -> impl Iterator < Item = & Pubkey > + ' a {
118+ ) -> impl Iterator < Item = & ' a Pubkey > + ' a {
119119 let pubkey_eq_origin = pubkey == origin;
120120 self . 0
121121 . iter ( )
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ impl Blockstore {
541541 & ' a self ,
542542 erasure_set : ErasureSetId ,
543543 erasure_metas : & ' a BTreeMap < ErasureSetId , WorkingEntry < ErasureMeta > > ,
544- ) -> Result < Option < ( ErasureSetId , Cow < ErasureMeta > ) > > {
544+ ) -> Result < Option < ( ErasureSetId , Cow < ' a , ErasureMeta > ) > > {
545545 let ( slot, fec_set_index) = erasure_set. store_key ( ) ;
546546
547547 // Check the previous entry from the in memory map to see if it is the consecutive
@@ -1534,7 +1534,7 @@ impl Blockstore {
15341534 slot : Slot ,
15351535 erasure_meta : & ErasureMeta ,
15361536 just_received_shreds : & ' a HashMap < ShredId , Shred > ,
1537- ) -> Option < Cow < Vec < u8 > > > {
1537+ ) -> Option < Cow < ' a , Vec < u8 > > > {
15381538 // Search for the shred which set the initial erasure config, either inserted,
15391539 // or in the current batch in just_received_shreds.
15401540 let index = erasure_meta. first_received_coding_shred_index ( ) ?;
Original file line number Diff line number Diff line change @@ -3499,7 +3499,7 @@ impl Bank {
34993499 pub fn prepare_unlocked_batch_from_single_tx < ' a > (
35003500 & ' a self ,
35013501 transaction : & ' a SanitizedTransaction ,
3502- ) -> TransactionBatch < ' _ , ' _ , SanitizedTransaction > {
3502+ ) -> TransactionBatch < ' a , ' a , SanitizedTransaction > {
35033503 let tx_account_lock_limit = self . get_transaction_account_lock_limit ( ) ;
35043504 let lock_result =
35053505 validate_account_locks ( transaction. message ( ) . account_keys ( ) , tx_account_lock_limit) ;
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ impl JsonRpcRequestProcessor {
380380 fn prepare_unlocked_batch_from_single_tx < ' a > (
381381 & ' a self ,
382382 transaction : & ' a SanitizedTransaction ,
383- ) -> TransactionBatch < ' _ > {
383+ ) -> TransactionBatch < ' a > {
384384 let tx_account_lock_limit = solana_sdk:: transaction:: MAX_TX_ACCOUNT_LOCKS ;
385385 let lock_result = transaction
386386 . get_account_locks ( tx_account_lock_limit)
You can’t perform that action at this time.
0 commit comments