MCPcopy Create free account
hub / github.com/CJackHwang/AIstudioProxyAPI / init_rotation_lock

Method init_rotation_lock

config/global_state.py:94–97  ·  view source on GitHub ↗

Initialize the rotation lock to allow requests.

(cls)

Source from the content-addressed store, hash-verified

92
93 @classmethod
94 def init_rotation_lock(cls):
95 """Initialize the rotation lock to allow requests."""
96 cls.AUTH_ROTATION_LOCK.set()
97 logger.info("🔐 Global Auth Rotation Lock initialized (OPEN).")
98
99 @classmethod
100 def set_quota_exceeded(cls, message: str = "", model_id: Optional[str] = None):

Callers 7

setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
tearDownMethod · 0.80
asyncSetUpMethod · 0.80
asyncTearDownMethod · 0.80
_initialize_globalsFunction · 0.80

Calls 2

setMethod · 0.80
infoMethod · 0.80

Tested by 6

setUpMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
tearDownMethod · 0.64
asyncSetUpMethod · 0.64
asyncTearDownMethod · 0.64