Skip to content

Commit

Permalink
Update cmd/soroban-rpc/internal/methods/get_ledgers.go
Browse files Browse the repository at this point in the history
Co-authored-by: George <[email protected]>
  • Loading branch information
aditya1702 and Shaptic authored Sep 30, 2024
1 parent 935d305 commit 9498a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/soroban-rpc/internal/methods/get_ledgers.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (h ledgersHandler) getLedgers(ctx context.Context, request GetLedgersReques
if err != nil {
return GetLedgersResponse{}, err
}
cursor := strconv.FormatUint(uint64(ledgers[len(ledgers)-1].Sequence), 10)
cursor := fmt.Sprintf("%d", ledgers[len(ledgers)-1].Sequence)

Check failure on line 121 in cmd/soroban-rpc/internal/methods/get_ledgers.go

View workflow job for this annotation

GitHub Actions / golangci-lint

fmt.Sprintf can be replaced with faster strconv.FormatUint (perfsprint)

return GetLedgersResponse{
Ledgers: ledgers,
Expand Down

0 comments on commit 9498a68

Please sign in to comment.