Fix the problem of timeout on external URL initialization

pull/7459/head
John Niang 2025-05-22 13:38:05 +08:00
parent e9011eb3ec
commit 254bb9b225
No known key found for this signature in database
GPG Key ID: D7363C015BBCAA59
1 changed files with 2 additions and 3 deletions

View File

@ -89,10 +89,9 @@ public class ExtensionResourceInitializer implements SmartLifecycle {
extension.getMetadata().getName());
}
})
.then(Mono.fromRunnable(
() -> eventPublisher.publishEvent(new ExtensionInitializedEvent(this)))
)
.then()
.block(Duration.ofMinutes(1));
eventPublisher.publishEvent(new ExtensionInitializedEvent(this));
}
@Override