]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/Cryptoportfolio/Front.git/commitdiff
Disable Poloniex ticker connection. v0.0.8
authorjloup <jeanloup.jamet@gmail.com>
Wed, 9 May 2018 17:44:48 +0000 (19:44 +0200)
committerjloup <jeanloup.jamet@gmail.com>
Wed, 9 May 2018 17:44:48 +0000 (19:44 +0200)
api/markets.go

index 60fb9122b94d8bde62d7b19d37bbe116a361a33b..119c545e1b41d5a18feff9ffb83bc86dce1a6777 100644 (file)
@@ -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
-               }
-       }()
 }