mirror of https://github.com/halo-dev/halo
Fix the problem of timeout on external URL initialization
parent
e9011eb3ec
commit
254bb9b225
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue