@@ -302,7 +302,7 @@ func (s *Sync) Missing(max int) ([]string, []common.Hash, []common.Hash) {
302302}
303303
304304// 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.
306306// there are two requests one for code and one for node but the hash
307307// is same). In this case the second response for the same hash will
308308// be treated as "non-requested" item or "already-processed" item but
@@ -391,7 +391,7 @@ func (s *Sync) Pending() int {
391391 return len (s .nodeReqs ) + len (s .codeReqs )
392392}
393393
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
395395// is already a pending request for this node, the new request will be discarded
396396// and only a parent reference added to the old one.
397397func (s * Sync ) scheduleNodeRequest (req * nodeRequest ) {
@@ -406,7 +406,7 @@ func (s *Sync) scheduleNodeRequest(req *nodeRequest) {
406406 s .queue .Push (string (req .path ), prio )
407407}
408408
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
410410// is already a pending request for this node, the new request will be discarded
411411// and only a parent reference added to the old one.
412412func (s * Sync ) scheduleCodeRequest (req * codeRequest ) {
@@ -556,7 +556,7 @@ func (s *Sync) children(req *nodeRequest, object node) ([]*nodeRequest, error) {
556556 return requests , nil
557557}
558558
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
560560// of the referencing parent requests complete due to this commit, they are also
561561// committed themselves.
562562func (s * Sync ) commitNodeRequest (req * nodeRequest ) error {
@@ -591,7 +591,7 @@ func (s *Sync) commitNodeRequest(req *nodeRequest) error {
591591 return nil
592592}
593593
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
595595// of the referencing parent requests complete due to this commit, they are also
596596// committed themselves.
597597func (s * Sync ) commitCodeRequest (req * codeRequest ) error {
0 commit comments