Skip to content

Commit

Permalink
clean up log
Browse files Browse the repository at this point in the history
  • Loading branch information
k-grant committed Aug 11, 2020
1 parent 8617565 commit 4532bd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/datastore/kvstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ type KVStore struct {
func getBadgerOptions(path string, options *KVStoreOptions) badger.Options {
opts := badger.DefaultOptions(path)
if options.EnableTruncate != nil {
fmt.Printf("Configuring with enableTruncate: %t \n", options.EnableTruncate.Value)
fmt.Printf("Configuring with EnableTruncate: %t \n", options.EnableTruncate.Value)
opts = opts.WithTruncate(options.EnableTruncate.Value)
}
if options.MaxTableSize != nil {
fmt.Printf("Configuring with maxTableSize: %d \n", options.MaxTableSize.Value)
fmt.Printf("Configuring with MaxTableSize: %d \n", options.MaxTableSize.Value)
opts = opts.WithMaxTableSize(options.MaxTableSize.Value)
}
if options.LevelOneSize != nil {
Expand All @@ -64,7 +64,7 @@ func getBadgerOptions(path string, options *KVStoreOptions) badger.Options {
func NewKVStore(path string, options *KVStoreOptions) (*KVStore, error) {
garbageCollectionDiscardRatio := 0.5
if options.GarbageCollectionDiscardRatio != nil {
fmt.Printf("Configuring with garbageCollectionDiscardRatio: %f \n", options.GarbageCollectionDiscardRatio.Value)
fmt.Printf("Configuring with GarbageCollectionDiscardRatio: %f \n", options.GarbageCollectionDiscardRatio.Value)
garbageCollectionDiscardRatio = float64(options.GarbageCollectionDiscardRatio.Value)
}

Expand Down

0 comments on commit 4532bd9

Please sign in to comment.