Skip to content

Commit ba4e662

Browse files
authored
docs: Fix usage to reflect latest refactor (#14)
1 parent 243a8dc commit ba4e662

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This provider is designed primarily for use in multi-user systems such as web se
1414
> This is a beta version. The API is not stabilized and may introduce breaking changes.
1515
1616
> [!NOTE]
17-
> This OpenFeature provider uses production versions of the LaunchDarkly SDK, which adhere to our standard [versioning policy](https://docs.launchdarkly.com/home/relay-proxy/versioning).
17+
> This OpenFeature provider uses production versions of the LaunchDarkly SDK, which adhere to our standard [versioning policy](https://docs.launchdarkly.com/sdk/concepts/versioning).
1818
1919
# LaunchDarkly overview
2020

@@ -39,13 +39,11 @@ $ pip install launchdarkly-openfeature-server
3939
### Usage
4040

4141
```python
42-
from ldclient import Config, LDClient
42+
from ldclient import Config
4343
from ld_openfeature import LaunchDarklyProvider
44-
from openfeature.evaluation_context import EvaluationContext
4544
from openfeature import api
4645

47-
ld_client = LDClient(config=Config("sdk-key"))
48-
openfeature_provider = LaunchDarklyProvider(ld_client)
46+
openfeature_provider = LaunchDarklyProvider(Config("sdk-key"))
4947

5048
api.set_provider(openfeature_provider)
5149

0 commit comments

Comments
 (0)