Skip to content

Commit

Permalink
fix for paytube example
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Jan 7, 2025
1 parent 64d6ffc commit 6163116
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions svm/src/transaction_processor.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#[cfg(feature = "dev-context-only-utils")]
use qualifier_attr::{field_qualifiers, qualifiers};
use {
crate::{
account_loader::{
Expand Down Expand Up @@ -67,13 +69,9 @@ use {
collections::{hash_map::Entry, HashMap, HashSet},
fmt::{Debug, Formatter},
rc::Rc,
sync::Weak,
},
};
#[cfg(feature = "dev-context-only-utils")]
use {
qualifier_attr::{field_qualifiers, qualifiers},
std::sync::Weak,
};

/// A list of log messages emitted during a transaction
pub type TransactionLogMessages = Vec<String>;
Expand Down Expand Up @@ -242,9 +240,7 @@ impl<FG: ForkGraph> TransactionBatchProcessor<FG> {
///
/// The cache will still not contain any builtin programs. It's advisable to
/// call `add_builtin` to add the required builtins before using the processor.
#[cfg(feature = "dev-context-only-utils")]
#[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))]
fn new(
pub fn new(
slot: Slot,
epoch: Epoch,
fork_graph: Weak<RwLock<FG>>,
Expand Down

0 comments on commit 6163116

Please sign in to comment.