Make fetching quotes concurrent.

master
root 3 years ago
parent 5070eb61f4
commit cb4d384c5f
  1. 5
      cmd/mop/main.go

@ -138,7 +138,7 @@ loop:
screen.Resize()
if !showingHelp {
screen.Draw(market)
redrawQuotesFlag = true
redrawQuotesFlag = true
} else {
screen.Draw(help)
}
@ -162,7 +162,8 @@ loop:
case <-quotesQueue.C:
if !showingHelp && !paused && len(keyboardQueue) == 0 {
screen.Draw(quotes)
go quotes.Fetch()
redrawQuotesFlag = true
}
case <-marketQueue.C:

Loading…
Cancel
Save