Skip to content

Commit 6c088ac

Browse files
committed
Fix style error
1 parent ed389a0 commit 6c088ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/sinks/postgres.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func NewWriterFromPostgresConn(ctx context.Context, conn db.PgxPoolIface, opts *
5454
return err
5555
}
5656
if !isValidInterval {
57-
return fmt.Errorf("Partition interval must be at least 1 hour, got: %s", opts.PartitionInterval)
57+
return fmt.Errorf("partition interval must be at least 1 hour, got: %s", opts.PartitionInterval)
5858
}
5959

6060
l.Info("initialising measurements database...")

internal/sinks/postgres_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ func TestPartitionIntervalValidation(t *testing.T) {
527527
}
528528

529529
_, err = NewPostgresWriter(ctx, connStr, opts)
530-
a.EqualError(err, "Partition interval must be at least 1 hour, got: 1 minute")
530+
a.EqualError(err, "partition interval must be at least 1 hour, got: 1 minute")
531531

532532
opts.PartitionInterval = "not an interval"
533533
_, err = NewPostgresWriter(ctx, connStr, opts)

0 commit comments

Comments
 (0)