Skip to content

Commit 4b00e46

Browse files
Merge #18: Harmonize variable naming
d70d9c5 Harmonize variable naming (Gabriel Comte) Pull request description: Let's stay consistent with variable names Top commit has no ACKs. Tree-SHA512: cf32196618d6a11e06cfd39ef2be8bebbcef07ce9206ed28a19e0cee3a69de0f9afd43ecb5b2de9759dec1616a1d750f38d422087aeabe0c51b7d809d7dc2c88
2 parents 98137c9 + d70d9c5 commit 4b00e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/async.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,13 +184,13 @@ impl AsyncClient {
184184

185185
/// Get the current height of the blockchain tip
186186
pub async fn get_height(&self) -> Result<u32, Error> {
187-
let req = self
187+
let resp = self
188188
.client
189189
.get(&format!("{}/blocks/tip/height", self.url))
190190
.send()
191191
.await?;
192192

193-
Ok(req.error_for_status()?.text().await?.parse()?)
193+
Ok(resp.error_for_status()?.text().await?.parse()?)
194194
}
195195

196196
/// Get the [`BlockHash`] of the current blockchain tip.

0 commit comments

Comments
 (0)