Skip to content

Commit

Permalink
Remove Version parameter from the build method
Browse files Browse the repository at this point in the history
The `with_version` builder method should be used instead.
  • Loading branch information
jvff committed Dec 18, 2021
1 parent fea2247 commit 057d162
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions zebra-network/src/peer/client/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ pub struct ClientTestHarness {
impl ClientTestHarness {
/// Create a [`ClientTestHarnessBuilder`] instance to help create a new [`Client`] instance
/// and a [`ClientTestHarness`] to track it.
pub fn build(version: Version) -> ClientTestHarnessBuilder {
ClientTestHarnessBuilder {
version: Some(version),
}
pub fn build() -> ClientTestHarnessBuilder {
ClientTestHarnessBuilder { version: None }
}

/// Gets the peer protocol version associated to the [`Client`].
Expand Down

0 comments on commit 057d162

Please sign in to comment.