|
|
@ -133,10 +133,10 @@ func cmdKVStore(cmd *cobra.Command, args []string) error { |
|
|
|
// Create the application - in memory or persisted to disk |
|
|
|
var app types.Application |
|
|
|
if flagPersist == "" { |
|
|
|
app = dummy.NewKVStoreApplication() |
|
|
|
app = kvstore.NewKVStoreApplication() |
|
|
|
} else { |
|
|
|
app = dummy.NewPersistentKVStoreApplication(flagPersist) |
|
|
|
app.(*dummy.PersistentKVStoreApplication).SetLogger(logger.With("module", "kvstore")) |
|
|
|
app = kvstore.NewPersistentKVStoreApplication(flagPersist) |
|
|
|
app.(*kvstore.PersistentKVStoreApplication).SetLogger(logger.With("module", "kvstore")) |
|
|
|
} |
|
|
|
|
|
|
|
// Start the listener |
|
|
|