From b4193dfb28d509632cd1f28331028809da9cbb08 Mon Sep 17 00:00:00 2001 From: drawdrop Date: Mon, 12 Aug 2024 22:59:32 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: drawdrop --- fsm/observer.go | 2 +- loopdb/sql_test.go | 2 +- loopdb/sqlerrors.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fsm/observer.go b/fsm/observer.go index d832576..b0c1a5d 100644 --- a/fsm/observer.go +++ b/fsm/observer.go @@ -200,7 +200,7 @@ type FixedSizeSlice[T any] struct { 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] { return &FixedSizeSlice[T]{ data: make([]T, 0, maxLen), diff --git a/loopdb/sql_test.go b/loopdb/sql_test.go index 5919236..a842619 100644 --- a/loopdb/sql_test.go +++ b/loopdb/sql_test.go @@ -283,7 +283,7 @@ func testSqliteLoopInStore(t *testing.T, pendingSwap LoopInContract) { 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. func TestSqliteLiquidityParams(t *testing.T) { ctxb := context.Background() diff --git a/loopdb/sqlerrors.go b/loopdb/sqlerrors.go index 54562fc..696323b 100644 --- a/loopdb/sqlerrors.go +++ b/loopdb/sqlerrors.go @@ -30,7 +30,7 @@ func MapSQLError(err error) error { 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. func parseSqliteError(sqliteErr *sqlite.Error) error { switch sqliteErr.Code() {