From e1a151a3f2029eef9239992c419455e0bd2f1a11 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:58:25 +0200 Subject: [PATCH] Simplify cloning request_cadence Signed-off-by: Till Faelligen <2353100+S7evinK@users.noreply.github.com> --- src/goose.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/goose.rs b/src/goose.rs index e9282d14..6f7dc5c7 100644 --- a/src/goose.rs +++ b/src/goose.rs @@ -911,18 +911,7 @@ impl Clone for GooseUser { shutdown_channel: self.shutdown_channel.clone(), weighted_users_index: self.weighted_users_index, load_test_hash: self.load_test_hash, - request_cadence: GooseRequestCadence { - last_time: self.request_cadence.last_time, - delays_since_last_time: self.request_cadence.delays_since_last_time, - counter: self.request_cadence.counter, - minimum_cadence: self.request_cadence.minimum_cadence, - maximum_cadence: self.request_cadence.maximum_cadence, - average_cadence: self.request_cadence.average_cadence, - total_elapsed: self.request_cadence.total_elapsed, - coordinated_omission_mitigation: self.request_cadence.coordinated_omission_mitigation, - user_cadence: self.request_cadence.user_cadence, - coordinated_omission_counter: self.request_cadence.coordinated_omission_counter, - }, + request_cadence: self.request_cadence.clone(), slept: self.slept, session_data: if self.session_data.is_some() { Option::from(self.session_data.clone_goose_user_data()) } else { None }, }