consensus: let time.Timer handle non-positive durations

This commit is contained in:
Ethan Buchman
2017-01-10 20:37:32 -05:00
parent 12d92fd5db
commit 55b4bfa1fe
4 changed files with 35 additions and 22 deletions

View File

@@ -246,9 +246,9 @@ func (cs *ConsensusState) startForReplay() {
// don't want to start full cs
cs.BaseService.OnStart()
log.Warn("Replay commands are disabled until someone updates them and writes tests")
/* TODO:!
// since we replay tocks we just ignore ticks
// TODO:!
/*
go func() {
for {
select {