feat(bizdev): snapshot collaborators onto Runtime and Server ports
Composition roots copy Parts once so HTTP/CLI handlers stop calling locator getters on every request. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -44,7 +44,7 @@ func main() {
|
||||
srv := server.NewServer(cfg, svc)
|
||||
ctx := context.Background()
|
||||
|
||||
pwSvc := svc.ProjectWorkflow()
|
||||
pwSvc := bizdev.Snapshot(svc).PW
|
||||
if pwSvc == nil {
|
||||
log.Fatal("project workflow service unavailable")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user