cmd/geth, cmd/utils: Updated flag and linting issue

This commit is contained in:
Lucas Hendren 2019-01-26 12:44:44 -05:00
parent 0b8fa153c1
commit c8660fa5a1
2 changed files with 14 additions and 15 deletions

View file

@ -339,8 +339,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
sub := stack.EventMux().Subscribe(downloader.DoneEvent{})
defer sub.Unsubscribe()
for {
select {
case event := <-sub.Chan():
event := <-sub.Chan()
if event == nil {
continue
}
@ -353,7 +352,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
"age", common.PrettyAge(timestamp))
stack.Stop()
}
}
}
}()
}

View file

@ -159,7 +159,7 @@ var (
}
ExitWhenSyncedFlag = cli.BoolFlag{
Name: "exitwhensynced",
Usage: "Exists syncing by given time (default 0) after block synchronisation",
Usage: "Exists syncing after block synchronisation",
}
defaultSyncMode = eth.DefaultConfig.SyncMode
SyncModeFlag = TextMarshalerFlag{