br0xen / boltbrowser

A CLI Browser for BoltDB Files
GNU General Public License v3.0
631 stars 91 forks source link

Timeout if DB is locked #20

Closed andrewslotin closed 7 years ago

andrewslotin commented 7 years ago

This PR adds a timeout option to open DB file. By default it it's 1 second, however this value can be overridden with --timeout= flag. Passing --timeout=0 disables this functionality and makes bolt.Open() waiting indefinitely.

Closes #18