From 5abcf3b157f0f1ef6655a64abf1229ab84ad190e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Gr=C3=BCbel?= Date: Fri, 7 Jun 2024 16:53:51 +0200 Subject: [PATCH] fix: make global hooks thread safe (#331) Signed-off-by: gruebel --- openfeature/api.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/openfeature/api.py b/openfeature/api.py index c04d423e..c95d10ac 100644 --- a/openfeature/api.py +++ b/openfeature/api.py @@ -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 @@ -80,7 +79,6 @@ def clear_hooks() -> None: def get_hooks() -> typing.List[Hook]: - global _hooks return _hooks