Remove fast return for alert plugins due to bean initialization lifecycle is not determinged

Causing alert sender is not executed
This commit is contained in:
kezhenxu94 2021-12-30 13:45:55 +08:00 committed by GitHub
parent f5fd29a05d
commit 6aaecdbd0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -80,11 +80,6 @@ public class AlertServer implements Closeable {
checkTable();
startServer();
if (alertPluginManager.size() == 0) {
log.warn("No alert plugin, alert sender will exit.");
return;
}
Executors.newScheduledThreadPool(1)
.scheduleAtFixedRate(new Sender(), 5, 5, TimeUnit.SECONDS);
}