Skip to content

Commit 9f0232e

Browse files
authored
chore: Fix async README example to use AsyncConfig (#517)
1 parent f40d3b2 commit 9f0232e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ pip install launchdarkly-server-sdk[async]
4040

4141
```python
4242
import asyncio
43-
from ldclient import Config, Context
43+
from ldclient import Context
4444
from ldclient.async_client import AsyncLDClient
45+
from ldclient.async_config import AsyncConfig
4546

4647
async def main():
47-
async with AsyncLDClient(Config("sdk-key")) as client:
48+
async with AsyncLDClient(AsyncConfig("sdk-key")) as client:
4849
value = await client.variation("my-flag", Context.create("user-key"), False)
4950
print(value)
5051

0 commit comments

Comments
 (0)