fix(#124): remove unused imageID parameter from createAndStartContainer
Some checks failed
Check / check (pull_request) Failing after 6m8s
Some checks failed
Check / check (pull_request) Failing after 6m8s
Remove the unused _ string (imageID) parameter from createAndStartContainer and update its caller in deployContainerWithTimeout to stop passing it.
This commit is contained in:
parent
9eb0e0fcbf
commit
4d7fed6331
@ -555,7 +555,7 @@ func (svc *Service) deployContainerWithTimeout(
|
||||
svc.removeOldContainer(deployCtx, app, deployment)
|
||||
|
||||
// Create and start the new container
|
||||
_, err = svc.createAndStartContainer(deployCtx, app, deployment, imageID)
|
||||
_, err = svc.createAndStartContainer(deployCtx, app, deployment)
|
||||
if err != nil {
|
||||
if errors.Is(deployCtx.Err(), context.DeadlineExceeded) {
|
||||
timeoutErr := fmt.Errorf("%w after %v", ErrDeployTimeout, deployTimeout)
|
||||
@ -1018,7 +1018,6 @@ func (svc *Service) createAndStartContainer(
|
||||
ctx context.Context,
|
||||
app *models.App,
|
||||
deployment *models.Deployment,
|
||||
_ string,
|
||||
) (string, error) {
|
||||
containerOpts, err := svc.buildContainerOptions(ctx, app, deployment.ID)
|
||||
if err != nil {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user