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 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