From b939822a4c330f8f4310ae3741c6b12b5394918e Mon Sep 17 00:00:00 2001 From: Lucas Hendren Date: Tue, 8 Jan 2019 09:08:23 -0800 Subject: [PATCH] cmd/geth: Removed unused failed event --- cmd/geth/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/geth/main.go b/cmd/geth/main.go index f2436c2382..55fe784b76 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -346,15 +346,15 @@ func startNode(ctx *cli.Context, stack *node.Node) { } } var mux = stack.EventMux() - var sub = mux.Subscribe(downloader.DoneEvent{},downloader.FailedEvent{}) + var sub = mux.Subscribe(downloader.DoneEvent{}) for { select { case headers := <-sub.Chan(): if headers == nil { return } - if 600 >= time.Now().Unix()-headers.Time.Unix() { - log.Info("Synchronisation completed, checking", "check",exitWhenSynced) + if 600 >= time.Now().Unix()-headers.Time.Unix() { + log.Info("Synchronisation completed, checking", "check", exitWhenSynced) time.Sleep(exitWhenSynced) stack.Stop() }