From 2b8f2176988bf26e4c19839bf8e2354fb04acd4a Mon Sep 17 00:00:00 2001 From: Andrew Herrington Date: Sat, 8 Jan 2022 18:51:44 -0600 Subject: [PATCH] fix async usage --- docs/usage.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/usage.rst b/docs/usage.rst index 07becb8..964a6f6 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -132,7 +132,7 @@ That's what CheckTrap is for. client = AsyncClient(ping_key="ping_key") # works with async too, and the ping api and slugs - with CheckTrap(client, check.slug) as ct: + async with CheckTrap(client, check.slug) as ct: # when entering the context manager, sends a start ping to your check # Add custom logs to what gets sent to healthchecks. Reminder, only the first 10k bytes get saved ct.add_log("My custom log message")