diff --git a/backend/controller/controller.go b/backend/controller/controller.go index d1c3d3186a..6eef5a399d 100644 --- a/backend/controller/controller.go +++ b/backend/controller/controller.go @@ -571,10 +571,10 @@ func (s *Service) Call(ctx context.Context, req *connect.Request[ftlv1.CallReque module := verbRef.Module s.routesMu.RLock() routes, ok := s.routes[module] + s.routesMu.RUnlock() if !ok { return nil, connect.NewError(connect.CodeNotFound, errors.Errorf("no routes for module %q", module)) } - s.routesMu.RUnlock() route := routes[rand.Intn(len(routes))] //nolint:gosec client := s.clientsForEndpoint(route.Endpoint) diff --git a/cmd/ftl/cmd_deploy.go b/cmd/ftl/cmd_deploy.go index 19e23b192f..e1f831dc11 100644 --- a/cmd/ftl/cmd_deploy.go +++ b/cmd/ftl/cmd_deploy.go @@ -53,7 +53,7 @@ func (d *deployCmd) Run(ctx context.Context, client ftlv1connect.ControllerServi return errors.WithStack(err) } - logger.Infof("Uploading %d files", len(gadResp.Msg.MissingDigests)) + logger.Infof("Uploading %d/%d files", len(gadResp.Msg.MissingDigests), len(files)) for _, missing := range gadResp.Msg.MissingDigests { file := filesByHash[missing] content, err := os.ReadFile(file.localPath)