From 6b0106b721800f942281c5f19e781e88862b14a1 Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Tue, 8 Mar 2016 21:09:43 +1100 Subject: [PATCH] Fixed Alphapoint typo. --- alphapointhttp.go | 2 +- alphapointwebsocket.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alphapointhttp.go b/alphapointhttp.go index 656d2bef..fef2333f 100644 --- a/alphapointhttp.go +++ b/alphapointhttp.go @@ -37,7 +37,7 @@ type Alphapoint struct { WebsocketConn *websocket.Conn WebsocketURL string ExchangeName string - ExchangeEnanbled bool + ExchangeEnabled bool WebsocketEnabled bool Verbose bool APIUrl, APIKey, UserID, APISecret string diff --git a/alphapointwebsocket.go b/alphapointwebsocket.go index e6e35cff..806fe914 100644 --- a/alphapointwebsocket.go +++ b/alphapointwebsocket.go @@ -29,7 +29,7 @@ type AlphapointWebsocketTicker struct { } func (a *Alphapoint) WebsocketClient() { - for a.ExchangeEnanbled && a.WebsocketEnabled { + for a.ExchangeEnabled && a.WebsocketEnabled { var Dialer websocket.Dialer var err error a.WebsocketConn, _, err = Dialer.Dial(a.WebsocketURL, http.Header{}) @@ -50,7 +50,7 @@ func (a *Alphapoint) WebsocketClient() { return } - for a.ExchangeEnanbled && a.WebsocketEnabled { + for a.ExchangeEnabled && a.WebsocketEnabled { msgType, resp, err := a.WebsocketConn.ReadMessage() if err != nil { log.Println(err)