Skip to content

Commit

Permalink
fix: extend provider connection deadline to allow for slower startups
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch committed Nov 5, 2024
1 parent 484b9a8 commit 3793b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/provider/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (p *DeploymentClient) dialConnection() (*grpc.ClientConn, error) {
p.address = "127.0.0.1:50051"
}

ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel()

// TODO DialContext is deprecated, migrate to NewClient if required
Expand All @@ -62,7 +62,7 @@ func (p *DeploymentClient) Up(deploymentRequest *deploy.DeploymentUpRequest) (<-

conn, err := p.dialConnection()
if err != nil {
errorChan <- fmt.Errorf("failed to connect to provider: %w", err)
errorChan <- fmt.Errorf("failed to connect to provider at %s: %w", p.address, err)
return
}
defer conn.Close()
Expand Down

0 comments on commit 3793b01

Please sign in to comment.