Skip to content

Commit 1cc6f6b

Browse files
committed
Use go.uber.org/atomic
1 parent e34d669 commit 1cc6f6b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/receive/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
"strconv"
1818
"strings"
1919
"sync"
20-
"sync/atomic"
2120
"time"
2221

2322
"github.com/go-kit/log"
@@ -37,6 +36,7 @@ import (
3736
"github.com/prometheus/prometheus/tsdb"
3837
"go.opentelemetry.io/otel/attribute"
3938
"go.opentelemetry.io/otel/trace"
39+
"go.uber.org/atomic"
4040
"golang.org/x/exp/slices"
4141
"google.golang.org/grpc"
4242
"google.golang.org/grpc/codes"

pkg/store/telemetry.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ package store
66
import (
77
"sort"
88
"strconv"
9-
"sync/atomic"
109

1110
"github.com/prometheus/client_golang/prometheus"
1211
"github.com/prometheus/client_golang/prometheus/promauto"
1312

1413
"github.com/thanos-io/thanos/pkg/store/storepb"
14+
15+
"go.uber.org/atomic"
1516
)
1617

1718
// seriesStatsAggregator aggregates results from fanned-out queries into a histogram given their

0 commit comments

Comments
 (0)