Skip to content

Commit

Permalink
Simplify cloning request_cadence
Browse files Browse the repository at this point in the history
Signed-off-by: Till Faelligen <[email protected]>
  • Loading branch information
S7evinK committed Jun 12, 2024
1 parent cf2a16b commit e1a151a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/goose.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
}
Expand Down

0 comments on commit e1a151a

Please sign in to comment.