From: jloup Date: Wed, 9 May 2018 17:44:48 +0000 (+0200) Subject: Disable Poloniex ticker connection. X-Git-Tag: v0.0.8 X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git;a=commitdiff_plain;h=3b8833854f83f75e3d16c1fdb869937f690e48ea Disable Poloniex ticker connection. --- diff --git a/api/markets.go b/api/markets.go index 60fb912..119c545 100644 --- a/api/markets.go +++ b/api/markets.go @@ -6,24 +6,6 @@ import ( var Poloniex *markets.Poloniex -func OpenMarketsConnection() error { - for { - err := Poloniex.StartTicker() - if err != nil { - return err - } - log.Warn("connection to poloniex stream ended, restarting it...") - } -} - func init() { Poloniex = markets.NewPoloniex() - - // We open markets connections in the background as it can take time. - go func() { - err := OpenMarketsConnection() - if err != nil { - ErrorChan <- err - } - }() }