From 52b539cf5d0412f7617b28300d4e46356a024249 Mon Sep 17 00:00:00 2001 From: Matt Toohey Date: Fri, 12 Apr 2024 13:40:04 +1000 Subject: [PATCH] remove unused time --- backend/controller/controller.go | 2 +- backend/controller/dal/dal.go | 2 +- backend/controller/dal/dal_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/controller/controller.go b/backend/controller/controller.go index 6e0373f7bd..7961518690 100644 --- a/backend/controller/controller.go +++ b/backend/controller/controller.go @@ -721,7 +721,7 @@ func (s *Service) CreateDeployment(ctx context.Context, req *connect.Request[ftl } ingressRoutes := extractIngressRoutingEntries(req.Msg) - dkey, err := s.dal.CreateDeployment(ctx, ms.Runtime.Language, module, artefacts, ingressRoutes, nil, time.Now()) + dkey, err := s.dal.CreateDeployment(ctx, ms.Runtime.Language, module, artefacts, ingressRoutes, nil) if err != nil { logger.Errorf(err, "Could not create deployment") return nil, fmt.Errorf("could not create deployment: %w", err) diff --git a/backend/controller/dal/dal.go b/backend/controller/dal/dal.go index 190b0d8af7..2ab476107f 100644 --- a/backend/controller/dal/dal.go +++ b/backend/controller/dal/dal.go @@ -411,7 +411,7 @@ type IngressRoutingEntry struct { // previously created artefacts with it. // // If an existing deployment with identical artefacts exists, it is returned. -func (d *DAL) CreateDeployment(ctx context.Context, language string, moduleSchema *schema.Module, artefacts []DeploymentArtefact, ingressRoutes []IngressRoutingEntry, cronJobs []CronJob, startTime time.Time) (key model.DeploymentKey, err error) { +func (d *DAL) CreateDeployment(ctx context.Context, language string, moduleSchema *schema.Module, artefacts []DeploymentArtefact, ingressRoutes []IngressRoutingEntry, cronJobs []CronJob) (key model.DeploymentKey, err error) { logger := log.FromContext(ctx) // Start the transaction diff --git a/backend/controller/dal/dal_test.go b/backend/controller/dal/dal_test.go index b2fca25bf4..749c1523a6 100644 --- a/backend/controller/dal/dal_test.go +++ b/backend/controller/dal/dal_test.go @@ -56,7 +56,7 @@ func TestDAL(t *testing.T) { Digest: testSha, Executable: true, Path: "dir/filename", - }}, nil, nil, time.Now()) + }}, nil, nil) assert.NoError(t, err) })