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

chore: fix some comments and method name #4916

Merged
merged 1 commit into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pkg/api/soc.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func (s *Service) socGetHandler(w http.ResponseWriter, r *http.Request) {
}
socCh, err := soc.FromChunk(sch)
if err != nil {
logger.Error(err, "chunk is not a signle owner chunk")
logger.Error(err, "chunk is not a single owner chunk")
jsonhttp.InternalServerError(w, "chunk is not a single owner chunk")
return
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/settlement/swap/addressbook.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type Addressbook interface {
PutChequebook(peer swarm.Address, chequebook common.Address) error
// AddDeductionFor peer stores the flag indicating the peer have already issued a cheque that has been deducted
AddDeductionFor(peer swarm.Address) error
// AddDeductionFor peer stores the flag indicating the peer have already received a cheque that has been deducted
// AddDeductionBy peer stores the flag indicating the peer have already issued a cheque that has been deducted
AddDeductionBy(peer swarm.Address) error
// GetDeductionFor returns whether a peer have already issued a cheque that has been deducted
GetDeductionFor(peer swarm.Address) (bool, error)
Expand Down
2 changes: 1 addition & 1 deletion pkg/storer/sample_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func TestReserveSamplerSisterNeighborhood(t *testing.T) {

for _, s := range sample.Items {
if got := swarm.Proximity(s.ChunkAddress.Bytes(), baseAddr.Bytes()); got != depthOfResponsibility {
t.Fatalf("promixity must be exactly %d, got %d", depthOfResponsibility, got)
t.Fatalf("proximity must be exactly %d, got %d", depthOfResponsibility, got)
}
}

Expand Down
Loading