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());
|
extension.getMetadata().getName());
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(Mono.fromRunnable(
|
.then()
|
||||||
() -> eventPublisher.publishEvent(new ExtensionInitializedEvent(this)))
|
|
||||||
)
|
|
||||||
.block(Duration.ofMinutes(1));
|
.block(Duration.ofMinutes(1));
|
||||||
|
eventPublisher.publishEvent(new ExtensionInitializedEvent(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue