Skip to content

Commit

Permalink
fix: missing unlock 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Oct 11, 2023
1 parent 82c7277 commit 9768e5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion cmd/ftl/cmd_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9768e5c

Please sign in to comment.