mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 06:47:28 -08:00
Remove unnecessary SetQueryLogger
method on QueryEngine
interface
Signed-off-by: Charles Korn <charles.korn@grafana.com>
This commit is contained in:
parent
4e77e8e5ef
commit
26262a1eb7
|
@ -117,7 +117,6 @@ func (e ErrStorage) Error() string {
|
||||||
|
|
||||||
// QueryEngine defines the interface for the *promql.Engine, so it can be replaced, wrapped or mocked.
|
// QueryEngine defines the interface for the *promql.Engine, so it can be replaced, wrapped or mocked.
|
||||||
type QueryEngine interface {
|
type QueryEngine interface {
|
||||||
SetQueryLogger(l QueryLogger)
|
|
||||||
NewInstantQuery(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, ts time.Time) (Query, error)
|
NewInstantQuery(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, ts time.Time) (Query, error)
|
||||||
NewRangeQuery(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, start, end time.Time, interval time.Duration) (Query, error)
|
NewRangeQuery(ctx context.Context, q storage.Queryable, opts QueryOpts, qs string, start, end time.Time, interval time.Duration) (Query, error)
|
||||||
}
|
}
|
||||||
|
|
|
@ -3884,8 +3884,6 @@ type fakeEngine struct {
|
||||||
query fakeQuery
|
query fakeQuery
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *fakeEngine) SetQueryLogger(promql.QueryLogger) {}
|
|
||||||
|
|
||||||
func (e *fakeEngine) NewInstantQuery(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, qs string, ts time.Time) (promql.Query, error) {
|
func (e *fakeEngine) NewInstantQuery(ctx context.Context, q storage.Queryable, opts promql.QueryOpts, qs string, ts time.Time) (promql.Query, error) {
|
||||||
return &e.query, nil
|
return &e.query, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue