mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-14 03:30:25 +00:00
fix: resolve NameError for redis_sentinels in session_cleanup_lock
The variable was renamed to ws_sentinels but session_cleanup_lock still referenced the old name, causing a startup crash.
This commit is contained in:
@@ -142,7 +142,7 @@ if WEBSOCKET_MANAGER == 'redis':
|
||||
redis_url=WEBSOCKET_REDIS_URL,
|
||||
lock_name=f'{REDIS_KEY_PREFIX}:session_cleanup_lock',
|
||||
timeout_secs=WEBSOCKET_REDIS_LOCK_TIMEOUT,
|
||||
redis_sentinels=redis_sentinels,
|
||||
redis_sentinels=ws_sentinels,
|
||||
redis_cluster=WEBSOCKET_REDIS_CLUSTER,
|
||||
)
|
||||
session_aquire_func = session_cleanup_lock.aquire_lock
|
||||
|
||||
Reference in New Issue
Block a user