From ca558f127d30ab6a8ac0704ea2d73aa01c53d86c Mon Sep 17 00:00:00 2001 From: drawdrop Date: Mon, 12 Aug 2024 22:51:50 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: drawdrop --- ingest/ledger_transaction_reader.go | 2 +- ingest/ledgerbackend/toml.go | 2 +- services/horizon/internal/db2/history/operation.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ingest/ledger_transaction_reader.go b/ingest/ledger_transaction_reader.go index 5d2ad1d237..df052142a7 100644 --- a/ingest/ledger_transaction_reader.go +++ b/ingest/ledger_transaction_reader.go @@ -112,7 +112,7 @@ func (reader *LedgerTransactionReader) Seek(index int) error { return nil } -// storeHashes creates a mapping between hashes and envelopes in order to +// storeTransactions creates a mapping between hashes and envelopes in order to // correctly provide a per-transaction view on-the-fly when Read() is called. func (reader *LedgerTransactionReader) storeTransactions(networkPassphrase string) error { // See https://github.com/stellar/go/pull/2720: envelopes in the meta (which diff --git a/ingest/ledgerbackend/toml.go b/ingest/ledgerbackend/toml.go index b7f41b03a7..c35021a6dd 100644 --- a/ingest/ledgerbackend/toml.go +++ b/ingest/ledgerbackend/toml.go @@ -201,7 +201,7 @@ func unflattenTables(text string, tablePlaceHolders *placeholders) string { }) } -// AddExamplePubnetQuorum adds example pubnet validators to toml file +// AddExamplePubnetValidators adds example pubnet validators to toml file func (c *CaptiveCoreToml) AddExamplePubnetValidators() { c.captiveCoreTomlValues.Validators = []Validator{ { diff --git a/services/horizon/internal/db2/history/operation.go b/services/horizon/internal/db2/history/operation.go index 04a6d00f50..e90208c868 100644 --- a/services/horizon/internal/db2/history/operation.go +++ b/services/horizon/internal/db2/history/operation.go @@ -174,7 +174,7 @@ func (q *OperationsQ) ForClaimableBalance(ctx context.Context, cbID string) *Ope return q } -// ForLiquidityPools filters the query to only operations pertaining to a +// ForLiquidityPool filters the query to only operations pertaining to a // liquidity pool, specified by the liquidity pool id as an hex-encoded string. func (q *OperationsQ) ForLiquidityPool(ctx context.Context, lpID string) *OperationsQ { var hLP HistoryLiquidityPool