优化启动后清理过期信息的逻辑
This commit is contained in:
@@ -30,7 +30,7 @@ public class ZLMKeepliveTimeoutListener extends KeyExpirationEventMessageListene
|
||||
public ZLMKeepliveTimeoutListener(RedisMessageListenerContainer listenerContainer) {
|
||||
super(listenerContainer);
|
||||
// 配置springboot默认Config为空,即不让应用去修改redis的默认配置,因为Redis服务出于安全会禁用CONFIG命令给远程用户使用
|
||||
setKeyspaceNotificationsConfigParameter("");
|
||||
// setKeyspaceNotificationsConfigParameter("");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -31,10 +31,8 @@ public class ZLMOfflineEventListener implements ApplicationListener<ZLMOfflineEv
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(ZLMOfflineEvent event) {
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("ZLM离线事件触发,ID:" + event.getMediaServerId());
|
||||
}
|
||||
|
||||
logger.info("ZLM离线事件触发,ID:" + event.getMediaServerId());
|
||||
// 处理ZLM离线
|
||||
mediaServerService.zlmServerOffline(event.getMediaServerId());
|
||||
streamProxyService.zlmServerOffline(event.getMediaServerId());
|
||||
|
||||
@@ -37,10 +37,8 @@ public class ZLMOnlineEventListener implements ApplicationListener<ZLMOnlineEven
|
||||
|
||||
@Override
|
||||
public void onApplicationEvent(ZLMOnlineEvent event) {
|
||||
|
||||
if (logger.isDebugEnabled()) {
|
||||
logger.debug("ZLM上线事件触发,ID:" + event.getMediaServerId());
|
||||
}
|
||||
|
||||
logger.info("ZLM上线事件触发,ID:" + event.getMediaServerId());
|
||||
streamPushService.zlmServerOnline(event.getMediaServerId());
|
||||
streamProxyService.zlmServerOnline(event.getMediaServerId());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user