Skip to content

Commit b4193df

Browse files
committed
chore: fix some function names
Signed-off-by: drawdrop <cricis@icloud.com>
1 parent 44d4601 commit b4193df

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

fsm/observer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ type FixedSizeSlice[T any] struct {
200200
sync.Mutex
201201
}
202202

203-
// NewFixedSlice initializes a new FixedSlice with a given maximum length.
203+
// NewFixedSizeSlice initializes a new FixedSlice with a given maximum length.
204204
func NewFixedSizeSlice[T any](maxLen int) *FixedSizeSlice[T] {
205205
return &FixedSizeSlice[T]{
206206
data: make([]T, 0, maxLen),

loopdb/sql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ func testSqliteLoopInStore(t *testing.T, pendingSwap LoopInContract) {
283283
require.NoError(t, err)
284284
}
285285

286-
// TestLiquidityParams checks that reading and writing to liquidty bucket are
286+
// TestSqliteLiquidityParams checks that reading and writing to liquidty bucket are
287287
// as expected.
288288
func TestSqliteLiquidityParams(t *testing.T) {
289289
ctxb := context.Background()

loopdb/sqlerrors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func MapSQLError(err error) error {
3030
return err
3131
}
3232

33-
// parsePostgresError attempts to parse a sqlite error as a database agnostic
33+
// parseSqliteError attempts to parse a sqlite error as a database agnostic
3434
// SQL error.
3535
func parseSqliteError(sqliteErr *sqlite.Error) error {
3636
switch sqliteErr.Code() {

0 commit comments

Comments
 (0)