Use context everywhere
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package dialer
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"net/url"
|
||||
|
||||
@@ -25,7 +26,7 @@ func New(app *application.App) *Dialer {
|
||||
}
|
||||
}
|
||||
|
||||
func (d *Dialer) ConnectDependencies() error {
|
||||
func (d *Dialer) ConnectDependencies(ctx context.Context) error {
|
||||
dialURL, err := d.UpstreamURL()
|
||||
if err != nil {
|
||||
return fmt.Errorf(
|
||||
@@ -38,6 +39,6 @@ func (d *Dialer) ConnectDependencies() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (d *Dialer) Start() error {
|
||||
func (d *Dialer) Start(_ context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user