Stats: Propagate context when listing sandbox plugins (#102207)

This commit is contained in:
Andres Martinez Gotor
2025-03-19 15:29:30 +01:00
committed by GitHub
parent c3f00eb403
commit ebddc79780
3 changed files with 12 additions and 7 deletions

View File

@ -1,9 +1,13 @@
package sandbox
import "github.com/grafana/grafana/pkg/setting"
import (
"context"
"github.com/grafana/grafana/pkg/setting"
)
type Sandbox interface {
Plugins() ([]string, error)
Plugins(ctx context.Context) ([]string, error)
}
type Service struct {
@ -16,6 +20,6 @@ func ProvideService(cfg *setting.Cfg) *Service {
}
}
func (s *Service) Plugins() ([]string, error) {
func (s *Service) Plugins(ctx context.Context) ([]string, error) {
return s.cfg.EnableFrontendSandboxForPlugins, nil
}