Skip to content

Commit

Permalink
Less intrusive fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hlcianfagna committed Dec 27, 2023
1 parent 0d7f56e commit 93769a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crate.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,11 @@ func (c crateEndpoint) write(ctx context.Context, r *crateWriteRequest) error {
batch := &pgx.Batch{}
for _, a := range r.rows {
batch.Queue(
crateWriteStatement,
"write_statement",
a.labels,
a.labelsHash,
a.timestamp,
// TODO: Find non-string way of encoding timestamps.
a.timestamp.Format("2006-01-02 15:04:05.000-07"),
a.value,
a.valueRaw,
)
Expand Down

0 comments on commit 93769a1

Please sign in to comment.