From 7af343b5d146753f542ce1d8c7dd1b28e2ea9b27 Mon Sep 17 00:00:00 2001 From: zeroXbrock <2791467+zeroXbrock@users.noreply.github.com> Date: Fri, 4 Oct 2024 11:23:34 -0700 Subject: [PATCH] change param type in PendingRunTx::new --- src/spammer/tx_actor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spammer/tx_actor.rs b/src/spammer/tx_actor.rs index 5e37d7f..c74b175 100644 --- a/src/spammer/tx_actor.rs +++ b/src/spammer/tx_actor.rs @@ -41,11 +41,11 @@ pub struct PendingRunTx { } impl PendingRunTx { - pub fn new(tx_hash: TxHash, start_timestamp: usize, kind: Option) -> 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()), } } }