Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
squashable: fix tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Harkishen-Singh <harkishensingh@hotmail.com>
  • Loading branch information
Harkishen-Singh committed Dec 16, 2022
1 parent b1dff69 commit e1b7371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion EXTENSION_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
master
feature_metric_rollup
2 changes: 1 addition & 1 deletion pkg/dataset/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit e1b7371

Please sign in to comment.