mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-18 15:10:03 +00:00
stream/websocket: Consolidate fields by using exchange config pointer (#809)
* stream: add exchange config pointer to setup WebsocketSetup struct to reduce and consolidate setting of variables. * config: reduce stutter * config: reduce minor stutter * glorious: nits addr. * Update exchanges/stream/websocket.go Co-authored-by: Scott <gloriousCode@users.noreply.github.com> * websocket: implement fix * engine/helpers: fix test * exchanges: fix after merge issues * exchange_template: fix output Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ type CustomEx struct {
|
||||
exchange.Base
|
||||
}
|
||||
|
||||
func (c *CustomEx) Setup(exch *config.ExchangeConfig) error {
|
||||
func (c *CustomEx) Setup(exch *config.Exchange) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -216,7 +216,7 @@ func (c *CustomEx) GetSubscriptions() ([]stream.ChannelSubscription, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (c *CustomEx) GetDefaultConfig() (*config.ExchangeConfig, error) {
|
||||
func (c *CustomEx) GetDefaultConfig() (*config.Exchange, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user