Skip to content

Commit 5abcf3b

Browse files
authored
fix: make global hooks thread safe (#331)
Signed-off-by: gruebel <[email protected]>
1 parent f2389da commit 5abcf3b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

openfeature/api.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ def get_provider_metadata(domain: typing.Optional[str] = None) -> Metadata:
5858

5959

6060
def get_evaluation_context() -> EvaluationContext:
61-
global _evaluation_context
6261
return _evaluation_context
6362

6463

@@ -80,7 +79,6 @@ def clear_hooks() -> None:
8079

8180

8281
def get_hooks() -> typing.List[Hook]:
83-
global _hooks
8482
return _hooks
8583

8684

0 commit comments

Comments
 (0)