Commit d97eab19 authored by qmhu's avatar qmhu
Browse files

fix hint

parent e59a17f2
Showing with 2 additions and 4 deletions
+2 -4
package server package server
import ( import (
"context"
"github.com/gocrane/crane/pkg/server/handler/clusters" "github.com/gocrane/crane/pkg/server/handler/clusters"
"github.com/gocrane/crane/pkg/server/handler/dashboards" "github.com/gocrane/crane/pkg/server/handler/dashboards"
"github.com/gocrane/crane/pkg/server/handler/prediction" "github.com/gocrane/crane/pkg/server/handler/prediction"
"github.com/gocrane/crane/pkg/server/handler/recommendation" "github.com/gocrane/crane/pkg/server/handler/recommendation"
) )
func (s *apiServer) initRouter(ctx context.Context) { func (s *apiServer) initRouter() {
clusterHandler := clusters.NewClusterHandler(s.clusterSrv) clusterHandler := clusters.NewClusterHandler(s.clusterSrv)
recommendationHandler := recommendation.NewRecommendationHandler(s.config) recommendationHandler := recommendation.NewRecommendationHandler(s.config)
......
...@@ -135,7 +135,7 @@ func (s *apiServer) Run(ctx context.Context) { ...@@ -135,7 +135,7 @@ func (s *apiServer) Run(ctx context.Context) {
s.installDefaultMiddlewares() s.installDefaultMiddlewares()
s.installGenericAPIs() s.installGenericAPIs()
s.initRouter(ctx) s.initRouter()
s.startGracefulShutDownManager(ctx) s.startGracefulShutDownManager(ctx)
go func() { go func() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment