diff --git a/cmd/stellar-rpc/internal/methods/get_latest_ledger.go b/cmd/stellar-rpc/internal/methods/get_latest_ledger.go index 45fc93ac..1aabe4f7 100644 --- a/cmd/stellar-rpc/internal/methods/get_latest_ledger.go +++ b/cmd/stellar-rpc/internal/methods/get_latest_ledger.go @@ -25,7 +25,9 @@ type latestLedgerHandler struct { ledgerReader db.LedgerReader } -func (h latestLedgerHandler) getLatestLedger(ctx context.Context, request GetLatestLedgerRequest) (GetLatestLedgerResponse, error) { +func (h latestLedgerHandler) getLatestLedger(ctx context.Context, + request GetLatestLedgerRequest, +) (GetLatestLedgerResponse, error) { latestSequence, err := h.ledgerEntryReader.GetLatestLedgerSequence(ctx) if err != nil { return GetLatestLedgerResponse{}, &jrpc2.Error{