Use new methods for getting settings.

This commit is contained in:
SergeantPanda 2025-06-12 16:11:43 -05:00
parent 2f91e0ce1c
commit 1e9ab54609
2 changed files with 2 additions and 2 deletions

View file

@ -941,7 +941,7 @@ class ProxyServer:
# If waiting for clients, check grace period
if connection_ready_time:
grace_period = ConfigHelper.get('CHANNEL_INIT_GRACE_PERIOD', 20)
grace_period = ConfigHelper.channel_init_grace_period()
time_since_ready = time.time() - connection_ready_time
# Add this debug log

View file

@ -1240,7 +1240,7 @@ class StreamManager:
redis_client.hset(metadata_key, mapping=update_data)
# Get configured grace period or default
grace_period = ConfigHelper.get('CHANNEL_INIT_GRACE_PERIOD', 20)
grace_period = ConfigHelper.channel_init_grace_period()
logger.info(f"STREAM MANAGER: Updated channel {channel_id} state: {current_state or 'None'} -> {ChannelState.WAITING_FOR_CLIENTS} with {current_buffer_index} buffer chunks")
logger.info(f"Started initial connection grace period ({grace_period}s) for channel {channel_id}")
else: