Split up common.go, file path fixes and much more

This commit is contained in:
Adrian Gallagher
2019-06-04 17:04:18 +10:00
parent 8c62316e82
commit e965e54e09
74 changed files with 524 additions and 617 deletions

View File

@@ -3,6 +3,7 @@ package engine
import (
"errors"
"net/http"
"strings"
"github.com/gorilla/websocket"
"github.com/thrasher-/gocryptotrader/common"
@@ -122,7 +123,7 @@ func (c *WebsocketClient) read() {
break
}
req := common.StringToLower(evt.Event)
req := strings.ToLower(evt.Event)
log.Debugf("websocket: request received: %s", req)
result, ok := wsHandlers[req]