diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e05a5a0..74ebfa84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ ### Changed +* feat(client): enable request pipelining for `AsyncClient` [#245] * chore!: remove deprecated `BlockSummary` and `get_block` [#225] ### Fixed diff --git a/src/async.rs b/src/async.rs index 9e144009..5c866520 100644 --- a/src/async.rs +++ b/src/async.rs @@ -156,7 +156,7 @@ impl AsyncClient { let mut delay = BASE_BACKOFF_MILLIS; let mut attempts = 0; - let request = self.build_request(Method::Get, path)?; + let request = self.build_request(Method::Get, path)?.with_pipelining(); loop { match request.clone().send_async_with_client(&self.client).await? {