Skip to content

Commit d70d9c5

Browse files
committed
Harmonize variable naming
1 parent 98137c9 commit d70d9c5

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)