Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

Commit f0da77e

Browse files
committed
Changing to atomic
1 parent 6426c82 commit f0da77e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/ingest/hydrolixlowerer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
type HydrolixLowerer struct {
1717
virtualTableStorage persistence.JSONDatabase
18-
ingestCounter int64
18+
ingestCounter atomic.Int64
1919
}
2020

2121
func NewHydrolixLowerer(virtualTableStorage persistence.JSONDatabase) *HydrolixLowerer {
@@ -51,7 +51,7 @@ func (ip *HydrolixLowerer) GenerateIngestContent(table *chLib.Table,
5151
// we only want to add fields that are not part of the schema e.g we don't
5252
// have columns for them
5353
var alterStatements []AlterStatement
54-
atomic.AddInt64(&ip.ingestCounter, 1)
54+
ip.ingestCounter.Add(1)
5555
//if ok, alteredAttributesIndexes := ip.shouldAlterColumns(table, attrsMap); ok {
5656
// alterStatements = ip.generateNewColumns(attrsMap, table, alteredAttributesIndexes, encodings)
5757
//}

0 commit comments

Comments
 (0)