DashboardStore: Provide an interface directly rather than pointer receiver (#63910)

This commit is contained in:
Ryan McKinley
2023-03-01 07:52:16 -08:00
committed by GitHub
parent a91e0a49c9
commit 22aa09d392
12 changed files with 60 additions and 63 deletions

View File

@@ -46,7 +46,6 @@ import (
"github.com/grafana/grafana/pkg/services/contexthandler/authproxy"
"github.com/grafana/grafana/pkg/services/dashboardimport"
dashboardimportservice "github.com/grafana/grafana/pkg/services/dashboardimport/service"
"github.com/grafana/grafana/pkg/services/dashboards"
dashboardstore "github.com/grafana/grafana/pkg/services/dashboards/database"
dashboardservice "github.com/grafana/grafana/pkg/services/dashboards/service"
"github.com/grafana/grafana/pkg/services/dashboardsnapshots"
@@ -262,7 +261,6 @@ var wireSet = wire.NewSet(
dashboardservice.ProvideSimpleDashboardService,
dashboardservice.ProvideDashboardProvisioningService,
dashboardservice.ProvideDashboardPluginService,
wire.Bind(new(dashboards.Store), new(*dashboardstore.DashboardStore)),
folderimpl.ProvideDashboardFolderStore,
wire.Bind(new(folder.FolderStore), new(*folderimpl.DashboardFolderStoreImpl)),
dashboardimportservice.ProvideService,