mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-08 16:12:16 -04:00
Remove unnecessary if
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
This commit is contained in:
parent
0c25109c37
commit
420e36b9c6
1 changed files with 2 additions and 5 deletions
|
|
@ -545,11 +545,8 @@ func NewOTLPWriteHandler(logger *slog.Logger, _ prometheus.Registerer, appendabl
|
|||
logger: logger,
|
||||
appendable: appendable,
|
||||
},
|
||||
config: configFunc,
|
||||
}
|
||||
|
||||
if opts.NativeDelta {
|
||||
ex.allowDeltaTemporality = true
|
||||
config: configFunc,
|
||||
allowDeltaTemporality: opts.NativeDelta,
|
||||
}
|
||||
|
||||
wh := &otlpWriteHandler{logger: logger, defaultConsumer: ex}
|
||||
|
|
|
|||
Loading…
Reference in a new issue