2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00

chore: fix some function names

Signed-off-by: drawdrop <cricis@icloud.com>
This commit is contained in:
drawdrop 2024-08-12 22:59:32 +08:00
parent 44d46010a0
commit b4193dfb28
3 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ type FixedSizeSlice[T any] struct {
sync.Mutex sync.Mutex
} }
// NewFixedSlice initializes a new FixedSlice with a given maximum length. // NewFixedSizeSlice initializes a new FixedSlice with a given maximum length.
func NewFixedSizeSlice[T any](maxLen int) *FixedSizeSlice[T] { func NewFixedSizeSlice[T any](maxLen int) *FixedSizeSlice[T] {
return &FixedSizeSlice[T]{ return &FixedSizeSlice[T]{
data: make([]T, 0, maxLen), data: make([]T, 0, maxLen),

View File

@ -283,7 +283,7 @@ func testSqliteLoopInStore(t *testing.T, pendingSwap LoopInContract) {
require.NoError(t, err) require.NoError(t, err)
} }
// TestLiquidityParams checks that reading and writing to liquidty bucket are // TestSqliteLiquidityParams checks that reading and writing to liquidty bucket are
// as expected. // as expected.
func TestSqliteLiquidityParams(t *testing.T) { func TestSqliteLiquidityParams(t *testing.T) {
ctxb := context.Background() ctxb := context.Background()

View File

@ -30,7 +30,7 @@ func MapSQLError(err error) error {
return err return err
} }
// parsePostgresError attempts to parse a sqlite error as a database agnostic // parseSqliteError attempts to parse a sqlite error as a database agnostic
// SQL error. // SQL error.
func parseSqliteError(sqliteErr *sqlite.Error) error { func parseSqliteError(sqliteErr *sqlite.Error) error {
switch sqliteErr.Code() { switch sqliteErr.Code() {