cmd/geth: Removed unused failed event

This commit is contained in:
Lucas Hendren 2019-01-08 09:08:23 -08:00
parent 91244340e2
commit b939822a4c

View file

@ -346,7 +346,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
} }
} }
var mux = stack.EventMux() var mux = stack.EventMux()
var sub = mux.Subscribe(downloader.DoneEvent{},downloader.FailedEvent{}) var sub = mux.Subscribe(downloader.DoneEvent{})
for { for {
select { select {
case headers := <-sub.Chan(): case headers := <-sub.Chan():
@ -354,7 +354,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
return return
} }
if 600 >= time.Now().Unix()-headers.Time.Unix() { if 600 >= time.Now().Unix()-headers.Time.Unix() {
log.Info("Synchronisation completed, checking", "check",exitWhenSynced) log.Info("Synchronisation completed, checking", "check", exitWhenSynced)
time.Sleep(exitWhenSynced) time.Sleep(exitWhenSynced)
stack.Stop() stack.Stop()
} }