testing key input via terminal.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user