mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 19:02:36 +08:00
feat(alerting): requests looks to be working again
This commit is contained in:
@ -13,12 +13,12 @@ func init() {
|
||||
}
|
||||
|
||||
func getExecutorFor(dsInfo *DataSourceInfo) Executor {
|
||||
if fn, exists := registry[dsInfo.Type]; exists {
|
||||
if fn, exists := registry[dsInfo.PluginId]; exists {
|
||||
return fn(dsInfo)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func RegisterExecutor(dsType string, fn GetExecutorFn) {
|
||||
registry[dsType] = fn
|
||||
func RegisterExecutor(pluginId string, fn GetExecutorFn) {
|
||||
registry[pluginId] = fn
|
||||
}
|
||||
|
Reference in New Issue
Block a user