File tree Expand file tree Collapse file tree 5 files changed +7
-26
lines changed
Expand file tree Collapse file tree 5 files changed +7
-26
lines changed Original file line number Diff line number Diff line change 11use hashbrown:: HashMap ;
22use itertools:: Itertools ;
3- use solana_transaction:: { versioned:: VersionedTransaction , VersionedMessage } ;
3+ use solana_transaction:: versioned:: VersionedTransaction ;
44use solana_transaction_status:: TransactionStatusMeta ;
55
66use crate :: {
@@ -80,19 +80,9 @@ impl TransactionSelector {
8080 if is_vote {
8181 return None ;
8282 }
83+ let instructions = & tx. message . instructions ( ) ;
8384
84- let instructions;
85- let keys;
86- match & tx. message {
87- VersionedMessage :: Legacy ( msg) => {
88- keys = & msg. account_keys ;
89- instructions = & msg. instructions ;
90- } ,
91- VersionedMessage :: V0 ( msg) => {
92- keys = & msg. account_keys ;
93- instructions = & msg. instructions ;
94- } ,
95- }
85+ let keys = & tx. message . static_account_keys ( ) ;
9686
9787 let pubkey_routes = keys
9888 . iter ( )
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ impl Sender {
112112 Ok ( producer)
113113 }
114114
115- async fn connect ( & self ) -> Result < RwLockReadGuard < Producer > , indexer_rabbitmq:: Error > {
115+ async fn connect ( & self ) -> Result < RwLockReadGuard < ' _ , Producer > , indexer_rabbitmq:: Error > {
116116 if self . is_stopped ( ) {
117117 return Err ( indexer_rabbitmq:: Error :: Other ( "Sender is stopped" ) ) ;
118118 }
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ use crate::prelude::*;
66use indexer_rabbitmq:: geyser:: { Message , SlotStatistics } ;
77use solana_sdk:: message:: compiled_instruction:: CompiledInstruction ;
88use solana_transaction:: versioned:: VersionedTransaction ;
9- use solana_transaction:: VersionedMessage ;
109use solana_transaction_status:: TransactionStatusMeta ;
1110
1211use crate :: sender:: Sender ;
@@ -255,15 +254,7 @@ fn process_slot(
255254 }
256255
257256 let msg = & vtx. message ;
258- let keys;
259- match & msg {
260- VersionedMessage :: Legacy ( msg) => {
261- keys = & msg. account_keys ;
262- } ,
263- VersionedMessage :: V0 ( msg) => {
264- keys = & msg. account_keys ;
265- } ,
266- }
257+ let keys = msg. static_account_keys ( ) ;
267258
268259 let inner_ixs: Vec < ( & Pubkey , & CompiledInstruction ) > = meta
269260 . inner_instructions
Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ impl crate::QueueType for QueueType {
543543 type Message = Message ;
544544
545545 #[ inline]
546- fn info ( & self ) -> crate :: queue_type:: QueueInfo {
546+ fn info ( & self ) -> crate :: queue_type:: QueueInfo < ' _ > {
547547 ( & self . props ) . into ( )
548548 }
549549}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub trait QueueType {
2525 type Message ;
2626
2727 /// Expose the underlying queue info for this queue
28- fn info ( & self ) -> QueueInfo ;
28+ fn info ( & self ) -> QueueInfo < ' _ > ;
2929}
3030
3131#[ derive( Debug , Clone ) ]
You can’t perform that action at this time.
0 commit comments