Skip to content

Commit

Permalink
cleanup code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Feb 5, 2024
1 parent aa28a30 commit 85813c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/encoding/utils/pointsIO.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func ReadG1Points(filepath string, n uint64, numWorker uint64) ([]bls.G1Point, e
end = (i + 1) * size
}
//fmt.Printf("worker %v start %v end %v. size %v\n", i, start, end, end - start)
//todo: handle error?

go readG1Worker(buf, s1Outs, start, end, G1PointBytes, results)
}

Expand Down Expand Up @@ -113,7 +113,6 @@ func ReadG1PointSection(filepath string, from, to uint64, numWorker uint64) ([]b
return nil, err
}

//todo: how to handle?
defer func() {
if err := g1f.Close(); err != nil {
log.Printf("g1 close error %v\n", err)
Expand Down Expand Up @@ -225,7 +224,7 @@ func ReadG2Points(filepath string, n uint64, numWorker uint64) ([]bls.G2Point, e
log.Println("ReadG2Points.ERR.0", err)
return nil, err
}
//todo: resolve panic

defer func() {
if err := g1f.Close(); err != nil {
log.Printf("g2 close error %v\n", err)
Expand Down

0 comments on commit 85813c7

Please sign in to comment.