Skip to content

Commit 8a541d3

Browse files
authored
chore: fix some comments and method name (#4916)
Signed-off-by: thirdkeyword <[email protected]>
1 parent 5244a9b commit 8a541d3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pkg/api/soc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ func (s *Service) socGetHandler(w http.ResponseWriter, r *http.Request) {
248248
}
249249
socCh, err := soc.FromChunk(sch)
250250
if err != nil {
251-
logger.Error(err, "chunk is not a signle owner chunk")
251+
logger.Error(err, "chunk is not a single owner chunk")
252252
jsonhttp.InternalServerError(w, "chunk is not a single owner chunk")
253253
return
254254
}

pkg/settlement/swap/addressbook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type Addressbook interface {
3838
PutChequebook(peer swarm.Address, chequebook common.Address) error
3939
// AddDeductionFor peer stores the flag indicating the peer have already issued a cheque that has been deducted
4040
AddDeductionFor(peer swarm.Address) error
41-
// AddDeductionFor peer stores the flag indicating the peer have already received a cheque that has been deducted
41+
// AddDeductionBy peer stores the flag indicating the peer have already issued a cheque that has been deducted
4242
AddDeductionBy(peer swarm.Address) error
4343
// GetDeductionFor returns whether a peer have already issued a cheque that has been deducted
4444
GetDeductionFor(peer swarm.Address) (bool, error)

pkg/storer/sample_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func TestReserveSamplerSisterNeighborhood(t *testing.T) {
225225

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

0 commit comments

Comments
 (0)