fix to Avro writer special cases

This commit is contained in:
Aditya Ujeniya
2025-05-14 17:29:28 +02:00
parent a03eb315f5
commit 5569ad53d2
6 changed files with 149 additions and 110 deletions

View File

@@ -1,7 +1,6 @@
package avro
import (
"fmt"
"sync"
"github.com/ClusterCockpit/cc-metric-store/internal/util"
@@ -117,7 +116,6 @@ func (l *AvroLevel) addMetric(metricName string, value util.Float, timestamp int
// Create keys for the next KeyCounter timestamps
l.data[lastTs+int64(Freq)] = make(map[string]util.Float, 0)
}
fmt.Printf("Creating timestamp keys to store key-value\n")
}
// Iterate over timestamps and choose the one which is within range.