diff --git a/bbolt/README.md b/bbolt/README.md index b00a548f..b3fadc4c 100644 --- a/bbolt/README.md +++ b/bbolt/README.md @@ -64,7 +64,7 @@ type Config struct { // Timeout is the amount of time to wait to obtain a file lock. // Only available on Darwin and Linux. // - // Optional. Default is 0 (no timeout) + // Optional. Default is 60 * time.Second. Timeout time.Duration // Open database in read-only mode. @@ -85,7 +85,7 @@ type Config struct { var ConfigDefault = Config{ Database: "fiber.db", Bucket: "fiber_storage", - Timeout: 0, + Timeout: 60 * time.Second, ReadOnly: false, Reset: false, } diff --git a/bbolt/config.go b/bbolt/config.go index 5cf21ddb..adeab712 100644 --- a/bbolt/config.go +++ b/bbolt/config.go @@ -17,7 +17,7 @@ type Config struct { // Timeout is the amount of time to wait to obtain a file lock. // Only available on Darwin and Linux. // - // Optional. Default is 0 (no timeout) + // Optional. Default is set to 60 * time.Second. Timeout time.Duration // Open database in read-only mode. @@ -35,7 +35,7 @@ type Config struct { var ConfigDefault = Config{ Database: "fiber.db", Bucket: "fiber_storage", - Timeout: 0, + Timeout: 60 * time.Second, ReadOnly: false, Reset: false, }