gateway: turn owner ID made by the composition root #1928
Notifications
Due Date
No due date set.
Blocks
#1920 Effective Go: critical paths
sam/archie
Reference: sam/archie#1928
Reference in new issue
Block a user
turn.go creates defaultTurnOwnerID at package init and falls back to it when OwnerID is empty. Generate it once in the gateway composition root, pass it in, and reject an empty OwnerID.
Done when the package-level variable is gone.
Done in
d0118756: the gateway composition root makes one owner ID per process and passes it to every turn runner; NewTurnRunner rejects an empty one. task check passed.