From f81546dfc6291f3ef2fff7d089dafee44e44ceed Mon Sep 17 00:00:00 2001 From: clonemycode Date: Wed, 1 May 2024 21:07:09 +0800 Subject: [PATCH] chore: fix function names Signed-off-by: clonemycode --- exp/lighthorizon/index/types/bitmap_test.go | 2 +- ingest/ledgerbackend/toml.go | 4 ++-- services/horizon/internal/db2/history/operation.go | 2 +- services/horizon/internal/httpx/handler.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exp/lighthorizon/index/types/bitmap_test.go b/exp/lighthorizon/index/types/bitmap_test.go index c5e7864872..eded02e830 100644 --- a/exp/lighthorizon/index/types/bitmap_test.go +++ b/exp/lighthorizon/index/types/bitmap_test.go @@ -202,7 +202,7 @@ func TestSetInactive(t *testing.T) { assert.EqualValues(t, 2+9, index.lastBit) } -// TestFuzzerSetInactive attempt to fuzz random bits into two bitmap sets, one +// TestFuzzySetUnset attempt to fuzz random bits into two bitmap sets, one // by addition, and one by subtraction - then, it compares the outcome. func TestFuzzySetUnset(t *testing.T) { permLen := uint32(128) // should be a multiple of 8 diff --git a/ingest/ledgerbackend/toml.go b/ingest/ledgerbackend/toml.go index bc3ab2247a..b7bcf5b940 100644 --- a/ingest/ledgerbackend/toml.go +++ b/ingest/ledgerbackend/toml.go @@ -199,7 +199,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{ { @@ -458,7 +458,7 @@ func (c *coreVersion) IsEqualOrAbove(major, minor int) bool { return (c.major == major && c.minor >= minor) || (c.major > major) } -// IsEqualOrAbove compares the core version to a version specific. If unable +// IsProtocolVersionEqualOrAbove compares the core version to a version specific. If unable // to make the decision, the result is always "false", leaning toward the // common denominator. func (c *coreVersion) IsProtocolVersionEqualOrAbove(protocolVer int) bool { 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 diff --git a/services/horizon/internal/httpx/handler.go b/services/horizon/internal/httpx/handler.go index ade5742566..0a5336bffb 100644 --- a/services/horizon/internal/httpx/handler.go +++ b/services/horizon/internal/httpx/handler.go @@ -188,7 +188,7 @@ func streamableStatePageHandler( } } -// streamableStatePageHandler creates a streamable page handler than generates +// streamableHistoryPageHandler creates a streamable page handler than generates // events without starting a REPEATABLE READ transaction. func streamableHistoryPageHandler( ledgerState *ledger.State,