Skip to content

Commit

Permalink
change param type in PendingRunTx::new
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroXbrock committed Oct 4, 2024
1 parent d7d2dc8 commit 7af343b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spammer/tx_actor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ pub struct PendingRunTx {
}

impl PendingRunTx {
pub fn new(tx_hash: TxHash, start_timestamp: usize, kind: Option<String>) -> Self {
pub fn new(tx_hash: TxHash, start_timestamp: usize, kind: Option<&str>) -> Self {
Self {
tx_hash,
start_timestamp,
kind,
kind: kind.map(|s| s.to_owned()),
}
}
}
Expand Down

0 comments on commit 7af343b

Please sign in to comment.