Merge pull request #565 from ncruces/patch-1

Documentation: remove note that Options.Timeout is Linux/macOS only
This commit is contained in:
Benjamin Wang 2023-09-18 10:11:42 +01:00 committed by GitHub
commit c46cb7c114
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
db.go
View File

@ -1208,8 +1208,7 @@ func (db *DB) freepages() []common.Pgid {
// Options represents the options that can be set when opening a database.
type Options struct {
// Timeout is the amount of time to wait to obtain a file lock.
// When set to zero it will wait indefinitely. This option is only
// available on Darwin and Linux.
// When set to zero it will wait indefinitely.
Timeout time.Duration
// Sets the DB.NoGrowSync flag before memory mapping the file.