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 @@ -774,7 +774,7 @@ impl ClusterInfo {
774
774
& ' a self ,
775
775
label : & ' static str ,
776
776
counter : & ' a Counter ,
777
- ) -> TimedGuard < ' a , RwLockReadGuard < Crds > > {
777
+ ) -> TimedGuard < ' a , RwLockReadGuard < ' a , Crds > > {
778
778
TimedGuard :: new ( self . gossip . crds . read ( ) . unwrap ( ) , label, counter)
779
779
}
780
780
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ impl PushActiveSet {
34
34
// If true forces gossip push even if the node has pruned the origin.
35
35
should_force_push : impl FnMut ( & Pubkey ) -> bool + ' a ,
36
36
stakes : & HashMap < Pubkey , u64 > ,
37
- ) -> impl Iterator < Item = & Pubkey > + ' a {
37
+ ) -> impl Iterator < Item = & ' a Pubkey > + ' a {
38
38
let stake = stakes. get ( pubkey) . min ( stakes. get ( origin) ) ;
39
39
self . get_entry ( stake)
40
40
. get_nodes ( pubkey, origin, should_force_push)
@@ -115,7 +115,7 @@ impl PushActiveSetEntry {
115
115
origin : & ' a Pubkey , // CRDS value owner.
116
116
// If true forces gossip push even if the node has pruned the origin.
117
117
mut should_force_push : impl FnMut ( & Pubkey ) -> bool + ' a ,
118
- ) -> impl Iterator < Item = & Pubkey > + ' a {
118
+ ) -> impl Iterator < Item = & ' a Pubkey > + ' a {
119
119
let pubkey_eq_origin = pubkey == origin;
120
120
self . 0
121
121
. iter ( )
Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ impl Blockstore {
541
541
& ' a self ,
542
542
erasure_set : ErasureSetId ,
543
543
erasure_metas : & ' a BTreeMap < ErasureSetId , WorkingEntry < ErasureMeta > > ,
544
- ) -> Result < Option < ( ErasureSetId , Cow < ErasureMeta > ) > > {
544
+ ) -> Result < Option < ( ErasureSetId , Cow < ' a , ErasureMeta > ) > > {
545
545
let ( slot, fec_set_index) = erasure_set. store_key ( ) ;
546
546
547
547
// Check the previous entry from the in memory map to see if it is the consecutive
@@ -1534,7 +1534,7 @@ impl Blockstore {
1534
1534
slot : Slot ,
1535
1535
erasure_meta : & ErasureMeta ,
1536
1536
just_received_shreds : & ' a HashMap < ShredId , Shred > ,
1537
- ) -> Option < Cow < Vec < u8 > > > {
1537
+ ) -> Option < Cow < ' a , Vec < u8 > > > {
1538
1538
// Search for the shred which set the initial erasure config, either inserted,
1539
1539
// or in the current batch in just_received_shreds.
1540
1540
let index = erasure_meta. first_received_coding_shred_index ( ) ?;
Original file line number Diff line number Diff line change @@ -3518,7 +3518,7 @@ impl Bank {
3518
3518
pub fn prepare_unlocked_batch_from_single_tx < ' a , Tx : SVMMessage > (
3519
3519
& ' a self ,
3520
3520
transaction : & ' a RuntimeTransaction < Tx > ,
3521
- ) -> TransactionBatch < ' _ , ' _ , Tx > {
3521
+ ) -> TransactionBatch < ' a , ' a , Tx > {
3522
3522
let tx_account_lock_limit = self . get_transaction_account_lock_limit ( ) ;
3523
3523
let lock_result = validate_account_locks ( transaction. account_keys ( ) , tx_account_lock_limit) ;
3524
3524
let mut batch = TransactionBatch :: new (
Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ impl JsonRpcRequestProcessor {
380
380
fn prepare_unlocked_batch_from_single_tx < ' a > (
381
381
& ' a self ,
382
382
transaction : & ' a SanitizedTransaction ,
383
- ) -> TransactionBatch < ' _ > {
383
+ ) -> TransactionBatch < ' a > {
384
384
let tx_account_lock_limit = solana_sdk:: transaction:: MAX_TX_ACCOUNT_LOCKS ;
385
385
let lock_result = transaction
386
386
. get_account_locks ( tx_account_lock_limit)
You can’t perform that action at this time.
0 commit comments