testing key input via terminal.

This commit is contained in:
greg stone
2023-02-26 07:32:58 +00:00
parent 69c420c3c3
commit 792cb7cc92
5 changed files with 26 additions and 11 deletions

View File

@@ -60,14 +60,11 @@ func Run(ctx context.Context) {
opts = badger.DefaultOptions(viper.GetString(storeFilePathFlag))
opts.EncryptionKey = key.Bytes()
opts.IndexCacheSize = 128 << 20
opts.WithLoggingLevel(badger.WARNING)
opts.Logger = nil
db, err = badger.Open(opts)
if err != nil {
check(err)
startupErrors <- err
return
}