Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix function names #5298

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exp/lighthorizon/index/types/bitmap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions ingest/ledgerbackend/toml.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/db2/history/operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion services/horizon/internal/httpx/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down