fix(ball-common): 修复当事件处理失败时直接会阻塞后续redis消息的bug

This commit is contained in:
2024-03-26 17:33:18 +08:00
parent d3f2a516c8
commit 7d4394c123
2 changed files with 7 additions and 8 deletions

View File

@@ -25,7 +25,11 @@ public class BallRedisListener implements RedisPubSubListener<String, BallMessag
if (ballMessage.getReceiverID() != null && !ballAPI.isLocalServer(ballMessage.getReceiverID())) {
return;
}
try {
eventBus.post(new MessageReceivedEvent(channel, ballMessage));
} catch (Exception e) {
e.printStackTrace();
}
}
@Override

View File

@@ -44,13 +44,8 @@ subprojects {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
jar {
archiveClassifier = "dev"
}
shadowJar {
archiveClassifier = ""
}
build {
dependsOn(shadowJar)
archiveClassifier = "FIX"
destinationDirectory = rootProject.layout.buildDirectory
}
}