Skip to content

Commit

Permalink
Merge pull request #285 from spacemeshos/update-go-1.22
Browse files Browse the repository at this point in the history
Update to go 1.22
  • Loading branch information
fasmat authored Apr 4, 2024
2 parents d483b39 + b0f6eb9 commit e92c110
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ updates:
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21 as builder
FROM golang:1.22 as builder
RUN set -ex \
&& apt-get update --fix-missing \
&& apt-get install -qy --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/spacemeshos/post

go 1.21
go 1.22.2

require (
github.com/davecgh/go-spew v1.1.1
Expand Down
3 changes: 1 addition & 2 deletions initialization/initialization.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,7 @@ func (init *Initializer) Initialize(ctx context.Context) error {
defer init.saveMetadata()

for i := *init.lastPosition.Load(); i < math.MaxUint64; i += batchSize {
lastPos := i
init.lastPosition.Store(&lastPos)
init.lastPosition.Store(&i)

select {
case <-ctx.Done():
Expand Down
1 change: 0 additions & 1 deletion proving/proving_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func getTestConfig(tb testing.TB) (config.Config, config.InitOpts) {

func Test_Generate(t *testing.T) {
for numUnits := uint32(1); numUnits < 6; numUnits++ {
numUnits := numUnits
t.Run(fmt.Sprintf("numUnits=%d", numUnits), func(t *testing.T) {
r := require.New(t)
log := zaptest.NewLogger(t, zaptest.Level(zap.DebugLevel))
Expand Down

0 comments on commit e92c110

Please sign in to comment.