mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 01:12:22 +08:00
Chore: Use response limit middleware from SDK (#83915)
This commit is contained in:

committed by
GitHub

parent
ecd6de826a
commit
c061cc33cc
@ -147,5 +147,9 @@ func (s *RequestConfigProvider) PluginRequestConfig(ctx context.Context, pluginI
|
||||
m[backend.SQLMaxIdleConnsDefault] = strconv.Itoa(s.cfg.SQLDatasourceMaxIdleConnsDefault)
|
||||
m[backend.SQLMaxConnLifetimeSecondsDefault] = strconv.Itoa(s.cfg.SQLDatasourceMaxConnLifetimeDefault)
|
||||
|
||||
if s.cfg.ResponseLimit > 0 {
|
||||
m[backend.ResponseLimit] = strconv.FormatInt(s.cfg.ResponseLimit, 10)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
Reference in New Issue
Block a user