Skip to content

Commit

Permalink
chore(interop): Replace repeat and take with repeat_n (#2170)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto authored Jan 31, 2025
1 parent f07abb2 commit 78be69e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interop/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ pub fn trace_init() {
pub fn client_payload(size: usize) -> pb::Payload {
pb::Payload {
r#type: default::Default::default(),
body: iter::repeat(0u8).take(size).collect(),
body: iter::repeat_n(0u8, size).collect(),
}
}

pub fn server_payload(size: usize) -> pb::Payload {
pb::Payload {
r#type: default::Default::default(),
body: iter::repeat(0u8).take(size).collect(),
body: iter::repeat_n(0u8, size).collect(),
}
}

Expand Down

0 comments on commit 78be69e

Please sign in to comment.