mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Enable Truncate option #116
This commit is contained in:
+3
-2
@@ -40,8 +40,9 @@ func NewBadger(config *config.Database) (*Badger, error) {
|
||||
return nil, errors.Wrap(err, "could not mkdir database dir")
|
||||
}
|
||||
|
||||
opts := badger.DefaultOptions(dir)
|
||||
opts.Logger = log.New()
|
||||
opts := badger.DefaultOptions(dir).
|
||||
WithLogger(log.New()).
|
||||
WithTruncate(true)
|
||||
|
||||
db, err := badger.Open(opts)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user