Skip to content

Commit 118fbb3

Browse files
committed
fix: rename thread lock variable for clarity in handler initialization
Signed-off-by: ImMin5 <mino@megazone.com>
1 parent 3671e68 commit 118fbb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/spaceone/core/handler/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"mutation": [],
2727
"event": [],
2828
}
29-
_HANDLER_THREAD_LOCK = threading.Lock()
29+
_HANDLER_INIT_LOCK = threading.Lock()
3030

3131
_LOGGER = logging.getLogger(__name__)
3232

@@ -147,7 +147,7 @@ def get_event_handlers() -> List[BaseEventHandler]:
147147

148148
def _check_init_state() -> None:
149149
if not _HANDLER_INFO["init"]:
150-
with _HANDLER_THREAD_LOCK:
150+
with _HANDLER_INIT_LOCK:
151151
if not _HANDLER_INFO["init"]:
152152
_init_handlers()
153153
_HANDLER_INFO["init"] = True

0 commit comments

Comments
 (0)