Skip to content

Commit

Permalink
Structure function calls consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
macladson committed Jun 22, 2021
1 parent 55f2f7c commit 1605df4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions common/eth2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,7 @@ impl BeaconNodeHttpClient {
.append_pair("slot", &slot.to_string())
.append_pair("committee_index", &committee_index.to_string());

let timeout = self.timeouts.attestation;
self.get_with_timeout(path, timeout).await
self.get_with_timeout(path, self.timeouts.attestation).await
}

/// `GET validator/aggregate_attestation?slot,attestation_data_root`
Expand All @@ -1099,8 +1098,7 @@ impl BeaconNodeHttpClient {
&format!("{:?}", attestation_data_root),
);

let timeout = self.timeouts.attestation;
self.get_opt_with_timeout(path, timeout).await
self.get_opt_with_timeout(path, self.timeouts.attestation).await
}

/// `POST validator/duties/attester/{epoch}`
Expand Down

0 comments on commit 1605df4

Please sign in to comment.