perf: 简化代码

This commit is contained in:
2024-03-18 18:05:57 +08:00
parent 44bd5731de
commit b0e149febb
4 changed files with 7 additions and 7 deletions

View File

@@ -179,7 +179,7 @@ public abstract class BallAPI {
}
getLogger().info("从数据库中加载了 " + allServerInfo.size() + " 条服务器信息");
getLogger().info("从数据库中加载了 " + allPlayerInfo.size() + " 条玩家信息");
subscribeIgnorePrefix(BALL_CHANNEL);
subscribeRaw(BALL_CHANNEL);
}
protected void disable() throws SQLException, InterruptedException {
@@ -522,7 +522,7 @@ public abstract class BallAPI {
*
* @param channel 频道名称
*/
public void subscribeIgnorePrefix(@NotNull String... channel) {
public void subscribeRaw(@NotNull String... channel) {
CoreAPI.getInstance().getExecutorService().submit(
() -> redisSub.subscribe(BallRedisListener.INSTANCE, channel)
);