Skip to content

Commit

Permalink
Update tx-archive in portal loop
Browse files Browse the repository at this point in the history
  • Loading branch information
zivkovicmilos committed Nov 4, 2024
1 parent c776e32 commit 22f1c1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions misc/loop/cmd/snapshotter.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/docker/go-connections/nat"
"github.com/gnolang/tx-archive/backup"
"github.com/gnolang/tx-archive/backup/client/http"
"github.com/gnolang/tx-archive/backup/writer/legacy"
"github.com/gnolang/tx-archive/backup/writer/standard"
)

const (
Expand Down Expand Up @@ -204,7 +204,7 @@ func (s snapshotter) backupTXs(ctx context.Context, rpcURL string) error {
}
defer instanceBackupFile.Close()

w := legacy.NewWriter(instanceBackupFile)
w := standard.NewWriter(instanceBackupFile)

// Create the tx-archive backup service
c, err := http.NewClient(rpcURL)
Expand Down
2 changes: 1 addition & 1 deletion misc/loop/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/docker/docker v24.0.7+incompatible
github.com/docker/go-connections v0.4.0
github.com/gnolang/gno v0.1.0-nightly.20240627
github.com/gnolang/tx-archive v0.3.0
github.com/gnolang/tx-archive v0.4.0
github.com/prometheus/client_golang v1.17.0
github.com/sirupsen/logrus v1.9.3
)
Expand Down
2 changes: 2 additions & 0 deletions misc/loop/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 22f1c1b

Please sign in to comment.