Skip to content

Commit

Permalink
refactor: remove comment
Browse files Browse the repository at this point in the history
  • Loading branch information
YESUNFEI authored Dec 12, 2024
1 parent c82031c commit 344bf9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bridge-history-api/internal/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,7 @@ func GetBlocksInRange(ctx context.Context, cli *ethclient.Client, start, end uin
// ConvertBigIntArrayToString convert the big int array to string
func ConvertBigIntArrayToString(array []*big.Int) string {
var sb strings.Builder
// Preallocate capacity (assuming ~20 chars per number plus separator)
sb.Grow(len(array) * 22)
sb.Grow(len(array) * 22)
for i, num := range array {
if i > 0 {
sb.WriteString(", ")
Expand Down

0 comments on commit 344bf9d

Please sign in to comment.