dque icon indicating copy to clipboard operation
dque copied to clipboard

releases the lock when load fail

Open DanielLeung opened this issue 4 years ago • 1 comments

for some reason, load() may fail when we init dque. the lock should be releases that we could reinitialize dque

if err := q.lock(); err != nil { return nil, err } if err := q.load(); err != nil { return nil, err }

DanielLeung avatar Dec 23 '20 06:12 DanielLeung

Hi Daniel, can you create a Pull Request?

joncrlsn avatar Dec 23 '20 16:12 joncrlsn