cmd: fixes for new config

This commit is contained in:
Ethan Buchman
2017-05-01 22:39:17 -04:00
parent 7db7bbe464
commit 1ef7c1d25b
6 changed files with 18 additions and 38 deletions

View File

@ -10,7 +10,6 @@ var replayCmd = &cobra.Command{
Use: "replay",
Short: "Replay messages from WAL",
Run: func(cmd *cobra.Command, args []string) {
config := getConfig()
consensus.RunReplayFile(&config.Config, config.Consensus, false)
},
}
@ -19,7 +18,6 @@ var replayConsoleCmd = &cobra.Command{
Use: "replay_console",
Short: "Replay messages from WAL in a console",
Run: func(cmd *cobra.Command, args []string) {
config := getConfig()
consensus.RunReplayFile(&config.Config, config.Consensus, true)
},
}