mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-17 15:09:59 +00:00
cmd/wrapper_coverage: prevent non-needed REST requests via context timeout (#1154)
* wrapper_coverage/exchanges: cancel context to not send rest requests/ populate context through functions that do rest requests * linter: fix * exchange_template: fix test --------- Co-authored-by: Ryan O'Hara-Reid <ryan.oharareid@thrasher.io>
This commit is contained in:
@@ -31,7 +31,7 @@ func (c *CustomEx) Setup(exch *config.Exchange) error {
|
||||
}
|
||||
|
||||
// Start is a mock method for CustomEx
|
||||
func (c *CustomEx) Start(wg *sync.WaitGroup) error {
|
||||
func (c *CustomEx) Start(ctx context.Context, wg *sync.WaitGroup) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -264,7 +264,7 @@ func (c *CustomEx) GetSubscriptions() ([]stream.ChannelSubscription, error) {
|
||||
}
|
||||
|
||||
// GetDefaultConfig is a mock method for CustomEx
|
||||
func (c *CustomEx) GetDefaultConfig() (*config.Exchange, error) {
|
||||
func (c *CustomEx) GetDefaultConfig(ctx context.Context) (*config.Exchange, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user