Commands compile (mostly) with new config reading

This commit is contained in:
Ethan Frey
2017-05-04 21:37:12 +02:00
committed by Ethan Buchman
parent 604bf03f3a
commit 92dee7ea3c
5 changed files with 25 additions and 49 deletions

View File

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