Skip to content

Commit

Permalink
Only annotate what can't be inferred
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Sep 25, 2024
1 parent 829d5e8 commit 1059f14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions query-engine/core/src/interactive_transactions/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ pub struct ItxManager {

impl ItxManager {
pub fn new() -> Self {
let transactions: Arc<RwLock<HashMap<TxId, Arc<RwLock<InteractiveTransaction>>>>> =
Arc::new(RwLock::new(HashMap::default()));
let transactions = Arc::new(RwLock::new(HashMap::<_, Arc<RwLock<InteractiveTransaction>>>::default()));
let closed_txs = Arc::new(RwLock::new(LruCache::new(*CLOSED_TX_CACHE_SIZE)));
let (timeout_sender, mut timeout_receiver) = unbounded_channel();

Expand Down

0 comments on commit 1059f14

Please sign in to comment.