Skip to content

Commit

Permalink
fix: the extension cannot run in startup
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Apr 10, 2024
1 parent 4322123 commit befd55e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func createServerCmd(execer fakeruntime.Execer, httpServer server.HTTPServer) (c
flags.StringVarP(&opt.clientSecret, "client-secret", "", os.Getenv("OAUTH_CLIENT_SECRET"), "ClientSecret is the application's secret")
flags.BoolVarP(&opt.dryRun, "dry-run", "", false, "Do not really start a gRPC server")

// gc releated flags
// gc related flags
flags.IntVarP(&opt.gcPercent, "gc-percent", "", 100, "The GC percent of Go")

c.Flags().MarkHidden("dry-run")
Expand Down Expand Up @@ -209,8 +209,6 @@ func (o *serverOption) runE(cmd *cobra.Command, args []string) (err error) {
}

storeExtMgr := server.NewStoreExtManager(o.execer)
defer storeExtMgr.StopAll()

remoteServer := server.NewRemoteServer(loader, remote.NewGRPCloaderFromStore(), secretServer, storeExtMgr, o.configDir)
kinds, storeKindsErr := remoteServer.GetStoreKinds(ctx, nil)
if storeKindsErr != nil {
Expand Down

0 comments on commit befd55e

Please sign in to comment.