From 933cabf9b8ce364ea05650694aae524ee56eaf79 Mon Sep 17 00:00:00 2001 From: Harkishen-Singh Date: Fri, 16 Dec 2022 14:59:25 +0530 Subject: [PATCH] squashable: fix tests. Signed-off-by: Harkishen-Singh --- pkg/dataset/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/dataset/config.go b/pkg/dataset/config.go index 1079cb3d15..4911f27a25 100644 --- a/pkg/dataset/config.go +++ b/pkg/dataset/config.go @@ -68,7 +68,7 @@ func NewConfig(contents string) (cfg Config, err error) { func (c *Config) Apply(ctx context.Context, conn *pgx.Conn) error { c.applyDefaults() - if c.Metrics.Rollups.Enabled { + if c.Metrics.Rollups != nil && c.Metrics.Rollups.Enabled { if err := c.Metrics.Rollups.Apply(ctx, conn); err != nil { return fmt.Errorf("error applying configuration for downsampling: %w", err) }