mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
loopd: fix errors.Is argument order
This commit is contained in:
parent
5ec5875dd7
commit
f4e7e676d4
2 changed files with 5 additions and 5 deletions
|
|
@ -194,7 +194,7 @@ func NewBoltSwapStore(dbPath string, chainParams *chaincfg.Params) (
|
|||
bdb, err := bbolt.Open(path, 0600, &bbolt.Options{
|
||||
Timeout: DefaultLoopDBTimeout,
|
||||
})
|
||||
if err == bbolt.ErrTimeout {
|
||||
if errors.Is(err, bbolt.ErrTimeout) {
|
||||
return nil, fmt.Errorf("%w: couldn't obtain exclusive lock on "+
|
||||
"%s, timed out after %v", bbolt.ErrTimeout, path,
|
||||
DefaultLoopDBTimeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue