Skip to content

Commit 6631f8c

Browse files
authored
fix: add stats attribute for ApifyClientAsync (#348)
### Description - add `stats` attribute for `ApifyClientAsync`
1 parent 8234533 commit 6631f8c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/apify_client/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,11 +310,13 @@ def __init__(
310310
timeout_secs=timeout_secs,
311311
)
312312

313+
self.stats = Statistics()
313314
self.http_client = HTTPClientAsync(
314315
token=token,
315316
max_retries=self.max_retries,
316317
min_delay_between_retries_millis=self.min_delay_between_retries_millis,
317318
timeout_secs=self.timeout_secs,
319+
stats=self.stats,
318320
)
319321

320322
def actor(self, actor_id: str) -> ActorClientAsync:

0 commit comments

Comments
 (0)