Skip to content

Commit

Permalink
Remove unecessary imports
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Jun 17, 2024
1 parent 10db617 commit 99c52aa
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion program-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ solana-frozen-abi-macro = { workspace = true, optional = true }
solana-measure = { workspace = true }
solana-metrics = { workspace = true }
solana-sdk = { workspace = true }
solana-vote = { workspace = true }
solana-type-overrides = { workspace = true }
solana-vote = { workspace = true }
solana_rbpf = { workspace = true }
thiserror = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion program-runtime/src/invoke_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ use {
IndexOfAccount, InstructionAccount, TransactionAccount, TransactionContext,
},
},
solana_vote::vote_account::VoteAccountsHashMap,
solana_type_overrides::sync::{atomic::Ordering, Arc},
solana_vote::vote_account::VoteAccountsHashMap,
std::{
alloc::Layout,
cell::RefCell,
Expand Down
4 changes: 2 additions & 2 deletions programs/sbf/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion svm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ solana-metrics = { workspace = true }
solana-program-runtime = { workspace = true }
solana-sdk = { workspace = true }
solana-system-program = { workspace = true }
solana-vote = { workspace = true }
solana-type-overrides = { workspace = true }
solana-vote = { workspace = true }

[lib]
crate-type = ["lib"]
Expand Down
2 changes: 0 additions & 2 deletions svm/src/transaction_processing_callback.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use {
solana_program_runtime::loaded_programs::ProgramCacheMatchCriteria,
solana_sdk::{account::AccountSharedData, pubkey::Pubkey},
solana_vote::vote_account::VoteAccountsHashMap,
solana_type_overrides::sync::Arc,
};

/// Runtime callbacks for transaction processing.
Expand Down
12 changes: 1 addition & 11 deletions svm/src/transaction_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ use {
transaction::{self, SanitizedTransaction, TransactionError},
transaction_context::{ExecutionRecord, TransactionContext},
},
solana_vote::vote_account::VoteAccountsHashMap,
solana_type_overrides::sync::{atomic::Ordering, Arc, RwLock},
solana_vote::vote_account::VoteAccountsHashMap,
std::{
cell::RefCell,
collections::{hash_map::Entry, HashMap, HashSet},
Expand Down Expand Up @@ -661,15 +661,6 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {
&self.epoch_schedule,
false,
) {
<<<<<<< HEAD
recompiled
.tx_usage_counter
.fetch_add(program_to_recompile.tx_usage_counter.load(Relaxed), Relaxed);
recompiled
.ix_usage_counter
.fetch_add(program_to_recompile.ix_usage_counter.load(Relaxed), Relaxed);
=======
drop(program_cache_read);
recompiled.tx_usage_counter.fetch_add(
program_to_recompile
.tx_usage_counter
Expand All @@ -682,7 +673,6 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {
.load(Ordering::Relaxed),
Ordering::Relaxed,
);
>>>>>>> 18f76f31f (Add shuttle test infrastructure)
let mut program_cache = self.program_cache.write().unwrap();
program_cache.assign_program(key, recompiled);
}
Expand Down
6 changes: 1 addition & 5 deletions type-overrides/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ pub mod lazy_static {
}

pub mod rand {
pub use rand::{
distributions::*, random, rngs::*, seq::*, CryptoRng, Error, Fill, SeedableRng,
};
#[cfg(not(feature = "shuttle-test"))]
pub use rand::{thread_rng, Rng, RngCore};
pub use rand::*;
#[cfg(feature = "shuttle-test")]
pub use shuttle::rand::{thread_rng, Rng, RngCore};
}
Expand Down

0 comments on commit 99c52aa

Please sign in to comment.