From 3b8833854f83f75e3d16c1fdb869937f690e48ea Mon Sep 17 00:00:00 2001 From: jloup Date: Wed, 9 May 2018 19:44:48 +0200 Subject: Disable Poloniex ticker connection. --- api/markets.go | 18 ------------------ 1 file changed, 18 deletions(-) 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 - } - }() } -- cgit v1.2.3