Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: function name error #77

Merged
merged 1 commit into from
Feb 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions transfer/uploader.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func NewUploader(ctx context.Context, w3Client *web3go.Client, clients []*node.Z
return uploader, nil
}

func checkLogExistance(ctx context.Context, clients []*node.ZgsClient, root common.Hash) (*node.FileInfo, error) {
func checkLogExistence(ctx context.Context, clients []*node.ZgsClient, root common.Hash) (*node.FileInfo, error) {
var info *node.FileInfo
var err error
for _, client := range clients {
Expand Down Expand Up @@ -269,8 +269,8 @@ func (uploader *Uploader) BatchUpload(ctx context.Context, datas []core.Iterable
trees[i] = tree
dataRoots[i] = trees[i].Root()

// Check existance
info, err := checkLogExistance(ctx, uploader.clients, trees[i].Root())
// Check existence
info, err := checkLogExistence(ctx, uploader.clients, trees[i].Root())
if err != nil {
errs <- errors.WithMessage(err, "Failed to check if skipped log entry available on storage node")
return
Expand Down Expand Up @@ -377,8 +377,8 @@ func (uploader *Uploader) Upload(ctx context.Context, data core.IterableData, op
}
uploader.logger.WithField("root", tree.Root()).Info("Data merkle root calculated")

// Check existance
info, err := checkLogExistance(ctx, uploader.clients, tree.Root())
// Check existence
info, err := checkLogExistence(ctx, uploader.clients, tree.Root())
if err != nil {
return common.Hash{}, tree.Root(), errors.WithMessage(err, "Failed to check if skipped log entry available on storage node")
}
Expand Down
Loading