Skip to content

Commit

Permalink
fix: make global hooks thread safe (#331)
Browse files Browse the repository at this point in the history
Signed-off-by: gruebel <[email protected]>
  • Loading branch information
gruebel authored Jun 7, 2024
1 parent f2389da commit 5abcf3b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions openfeature/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def get_provider_metadata(domain: typing.Optional[str] = None) -> Metadata:


def get_evaluation_context() -> EvaluationContext:
global _evaluation_context
return _evaluation_context


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


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


Expand Down

0 comments on commit 5abcf3b

Please sign in to comment.