Skip to content

Commit ffe5b28

Browse files
authored
chore(deps): switch to the stdlib atomic package in snapshot code (#12666)
We probably used uber's by mistake. It comes into our dependency tree via go-ipld-blockstore and will leave via filecoin-project/filecoin-ffi#497.
1 parent 9300855 commit ffe5b28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

chain/store/snapshot.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"fmt"
88
"io"
99
"sync"
10+
"sync/atomic"
1011
"time"
1112

1213
blocks "github.com/ipfs/go-block-format"
@@ -17,7 +18,6 @@ import (
1718
carv2 "github.com/ipld/go-car/v2"
1819
"github.com/multiformats/go-multicodec"
1920
cbg "github.com/whyrusleeping/cbor-gen"
20-
"go.uber.org/atomic"
2121
"golang.org/x/sync/errgroup"
2222
"golang.org/x/xerrors"
2323

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ require (
151151
go.opentelemetry.io/otel/metric v1.28.0
152152
go.opentelemetry.io/otel/sdk v1.28.0
153153
go.opentelemetry.io/otel/sdk/metric v1.28.0
154-
go.uber.org/atomic v1.11.0
155154
go.uber.org/fx v1.22.1
156155
go.uber.org/multierr v1.11.0
157156
go.uber.org/zap v1.27.0
@@ -328,6 +327,7 @@ require (
328327
gitlab.com/yawning/tuplehash v0.0.0-20230713102510-df83abbf9a02 // indirect
329328
go.dedis.ch/kyber/v4 v4.0.0-pre2.0.20240924132404-4de33740016e // indirect
330329
go.opentelemetry.io/otel/trace v1.28.0 // indirect
330+
go.uber.org/atomic v1.11.0 // indirect
331331
go.uber.org/dig v1.17.1 // indirect
332332
go.uber.org/mock v0.4.0 // indirect
333333
go4.org v0.0.0-20230225012048-214862532bf5 // indirect

0 commit comments

Comments
 (0)