From 864d4e5cdd2ce8bb6512ec9049cab528ffa0e495 Mon Sep 17 00:00:00 2001 From: bitcoin-lightning <153181187+AtomicInnovation321@users.noreply.github.com> Date: Tue, 2 Jan 2024 13:03:38 +0800 Subject: [PATCH 1/2] fix typo in sqlite.go --- loopdb/sqlite.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopdb/sqlite.go b/loopdb/sqlite.go index 1a744f6..cfbca6a 100644 --- a/loopdb/sqlite.go +++ b/loopdb/sqlite.go @@ -294,7 +294,7 @@ func (b *BaseDB) FixFaultyTimestamps(ctx context.Context) error { } // TxOptions represents a set of options one can use to control what type of -// database transaction is created. Transaction can wither be read or write. +// database transaction is created. Transaction can whether be read or write. type TxOptions interface { // ReadOnly returns true if the transaction should be read only. ReadOnly() bool From aefabfaeed2868b28fb1c04bda240bb7271fad5c Mon Sep 17 00:00:00 2001 From: bitcoin-lightning <153181187+AtomicInnovation321@users.noreply.github.com> Date: Tue, 2 Jan 2024 13:04:21 +0800 Subject: [PATCH 2/2] fix typo in store.go --- loopdb/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopdb/store.go b/loopdb/store.go index 9050a2c..a52ef89 100644 --- a/loopdb/store.go +++ b/loopdb/store.go @@ -641,7 +641,7 @@ func (s *boltSwapStore) updateLoop(bucketKey []byte, hash lntypes.Hash, } updatesBucket := swapBucket.Bucket(updatesBucketKey) if updatesBucket == nil { - return errors.New("udpate bucket not found") + return errors.New("update bucket not found") } // Each update for this swap will get a new monotonically