Skip to content

Commit

Permalink
Use go.uber.org/atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhu-db committed Dec 13, 2024
1 parent e34d669 commit 1cc6f6b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
"strconv"
"strings"
"sync"
"sync/atomic"
"time"

"github.com/go-kit/log"
Expand All @@ -37,6 +36,7 @@ import (
"github.com/prometheus/prometheus/tsdb"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/trace"
"go.uber.org/atomic"
"golang.org/x/exp/slices"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
Expand Down
3 changes: 2 additions & 1 deletion pkg/store/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ package store
import (
"sort"
"strconv"
"sync/atomic"

"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"

"github.com/thanos-io/thanos/pkg/store/storepb"

"go.uber.org/atomic"
)

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

0 comments on commit 1cc6f6b

Please sign in to comment.