Remove unused application startup steps buffer (#7364)

#### What type of PR is this?

/kind improvement
/area core
/milestone 2.20.x

#### What this PR does / why we need it:

This PR removes application startup steps buffer to reduce memory usage.

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/7376/head
John Niang 2025-04-21 12:56:48 +08:00 committed by GitHub
parent 222e955a66
commit a94b74cb38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,6 @@ package run.halo.app;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.integration.IntegrationAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableScheduling;
import run.halo.app.infra.properties.HaloProperties;
@ -23,9 +22,7 @@ import run.halo.app.infra.properties.HaloProperties;
public class Application {
public static void main(String[] args) {
new SpringApplicationBuilder(Application.class)
.applicationStartup(new BufferingApplicationStartup(1024))
.run(args);
new SpringApplicationBuilder(Application.class).run(args);
}
}