@@ -302,7 +302,7 @@ func (s *Sync) Missing(max int) ([]string, []common.Hash, []common.Hash) {
302
302
}
303
303
304
304
// ProcessCode injects the received data for requested item. Note it can
305
- // happpen that the single response commits two pending requests(e.g.
305
+ // happen that the single response commits two pending requests(e.g.
306
306
// there are two requests one for code and one for node but the hash
307
307
// is same). In this case the second response for the same hash will
308
308
// be treated as "non-requested" item or "already-processed" item but
@@ -391,7 +391,7 @@ func (s *Sync) Pending() int {
391
391
return len (s .nodeReqs ) + len (s .codeReqs )
392
392
}
393
393
394
- // schedule inserts a new state retrieval request into the fetch queue. If there
394
+ // scheduleNodeRequest inserts a new state retrieval request into the fetch queue. If there
395
395
// is already a pending request for this node, the new request will be discarded
396
396
// and only a parent reference added to the old one.
397
397
func (s * Sync ) scheduleNodeRequest (req * nodeRequest ) {
@@ -406,7 +406,7 @@ func (s *Sync) scheduleNodeRequest(req *nodeRequest) {
406
406
s .queue .Push (string (req .path ), prio )
407
407
}
408
408
409
- // schedule inserts a new state retrieval request into the fetch queue. If there
409
+ // scheduleCodeRequest inserts a new state retrieval request into the fetch queue. If there
410
410
// is already a pending request for this node, the new request will be discarded
411
411
// and only a parent reference added to the old one.
412
412
func (s * Sync ) scheduleCodeRequest (req * codeRequest ) {
@@ -556,7 +556,7 @@ func (s *Sync) children(req *nodeRequest, object node) ([]*nodeRequest, error) {
556
556
return requests , nil
557
557
}
558
558
559
- // commit finalizes a retrieval request and stores it into the membatch. If any
559
+ // commitNodeRequest finalizes a retrieval request and stores it into the membatch. If any
560
560
// of the referencing parent requests complete due to this commit, they are also
561
561
// committed themselves.
562
562
func (s * Sync ) commitNodeRequest (req * nodeRequest ) error {
@@ -591,7 +591,7 @@ func (s *Sync) commitNodeRequest(req *nodeRequest) error {
591
591
return nil
592
592
}
593
593
594
- // commit finalizes a retrieval request and stores it into the membatch. If any
594
+ // commitCodeRequest finalizes a retrieval request and stores it into the membatch. If any
595
595
// of the referencing parent requests complete due to this commit, they are also
596
596
// committed themselves.
597
597
func (s * Sync ) commitCodeRequest (req * codeRequest ) error {
0 commit comments