summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--internal/rpn/operations.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/rpn/operations.go b/internal/rpn/operations.go
index 3dfc7c2..a3d660c 100644
--- a/internal/rpn/operations.go
+++ b/internal/rpn/operations.go
@@ -29,17 +29,15 @@ var (
)
// NewOperations creates a new Operations instance with the given variable store.
-// Creates a new ConstantsProvider internally; use SetConstants to replace it.
+// Does not create a ConstantsProvider internally; caller must use SetConstants.
// If no registry is provided, defaults to the global MetricRegistry.
func NewOperations(vars VariableStore, reg ...*MetricRegistry) *Operations {
- consts := NewConstants()
r := GetMetricRegistry()
if len(reg) > 0 && reg[0] != nil {
r = reg[0]
}
return &Operations{
vars: vars,
- consts: consts,
mode: FloatMode, // default
prefixMode: SI, // default
metricRegistry: r,