X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=api%2Fmarkets.go;h=119c545e1b41d5a18feff9ffb83bc86dce1a6777;hb=3b8833854f83f75e3d16c1fdb869937f690e48ea;hp=60fb9122b94d8bde62d7b19d37bbe116a361a33b;hpb=8d238416001f2352dcbb76ca2c2af5be5992e987;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FCryptoportfolio%2FFront.git 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 - } - }() }