From f07a7738317ca070448af39fedc95623e99104f2 Mon Sep 17 00:00:00 2001 From: "fengyun.rui" Date: Mon, 6 Jan 2025 05:33:23 +0800 Subject: [PATCH] fix: add default value for options annotation (#60) --- options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options.go b/options.go index 3cb8048..dc37332 100644 --- a/options.go +++ b/options.go @@ -13,11 +13,13 @@ type Options struct { // // Setting the value to 0 disables the automatic background synchronization. // Setting the value to -1 makes the DB call Sync() after every write operation. + // Default: 0 BackgroundSyncInterval time.Duration // BackgroundCompactionInterval sets the amount of time between background Compact() calls. // // Setting the value to 0 disables the automatic background compaction. + // Default: 0 BackgroundCompactionInterval time.Duration // FileSystem sets the file system implementation.