Skip to content

Commit

Permalink
chore: fix some comments and method name
Browse files Browse the repository at this point in the history
Signed-off-by: thirdkeyword <[email protected]>
  • Loading branch information
thirdkeyword committed Nov 28, 2024
1 parent 4dc554e commit 6d3bc74
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 6d3bc74

Please sign in to comment.