|
@ -133,10 +133,10 @@ func cmdKVStore(cmd *cobra.Command, args []string) error { |
|
|
// Create the application - in memory or persisted to disk |
|
|
// Create the application - in memory or persisted to disk |
|
|
var app types.Application |
|
|
var app types.Application |
|
|
if flagPersist == "" { |
|
|
if flagPersist == "" { |
|
|
app = dummy.NewKVStoreApplication() |
|
|
|
|
|
|
|
|
app = kvstore.NewKVStoreApplication() |
|
|
} else { |
|
|
} 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 |
|
|
// Start the listener |
|
|