Engine pre-merge changes (#392)

* Engine pre merge changes

* Remove redundant "seconds"
This commit is contained in:
Adrian Gallagher
2019-12-04 16:25:55 +11:00
committed by GitHub
parent 11a68a9bb7
commit 17a786536d
8 changed files with 4830 additions and 1434 deletions

View File

@@ -371,8 +371,8 @@ func (e *ExchangeCurrencyPairSyncer) worker() {
c.Ticker.IsUsingWebsocket = false
c.Ticker.IsUsingREST = true
log.Warnf(log.SyncMgr,
"%s %s: No ticker update after 10 seconds, switching from websocket to rest\n",
c.Exchange, FormatCurrency(enabledPairs[i]).String())
"%s %s: No ticker update after %s, switching from websocket to rest\n",
c.Exchange, FormatCurrency(enabledPairs[i]).String(), e.Cfg.SyncTimeout)
switchedToRest = true
e.setProcessing(c.Exchange, c.Pair, c.AssetType, SyncItemTicker, false)
}
@@ -435,8 +435,8 @@ func (e *ExchangeCurrencyPairSyncer) worker() {
c.Orderbook.IsUsingWebsocket = false
c.Orderbook.IsUsingREST = true
log.Warnf(log.SyncMgr,
"%s %s: No orderbook update after 15 seconds, switching from websocket to rest\n",
c.Exchange, FormatCurrency(c.Pair).String())
"%s %s: No orderbook update after %s, switching from websocket to rest\n",
c.Exchange, FormatCurrency(c.Pair).String(), e.Cfg.SyncTimeout)
switchedToRest = true
e.setProcessing(c.Exchange, c.Pair, c.AssetType, SyncItemOrderbook, false)
}