Skip to content

Commit

Permalink
[mock_uss] Have gevent monkey-patch early in mock_uss (#531)
Browse files Browse the repository at this point in the history
* Have gevent monkey-patch early in mock_uss

* Satisfy `make format`
  • Loading branch information
BenjaminPelletier authored Mar 7, 2024
1 parent fa52acc commit 93e67ef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions monitoring/mock_uss/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import inspect
import os
from typing import Any, Optional, Callable

# Because mock_uss uses gevent, we need to monkey-patch before anything else is loaded.
# https://www.gevent.org/intro.html#monkey-patching
from gevent import monkey

monkey.patch_all()

from loguru import logger

from monitoring.mock_uss.server import MockUSS
Expand Down

0 comments on commit 93e67ef

Please sign in to comment.