config: service registry is static data #1926
Notifications
Due Date
No due date set.
Blocks
#1920 Effective Go: critical paths
sam/archie
Reference: sam/archie#1926
Reference in new issue
Block a user
servicespec.go keeps a mutex-guarded map filled by init() through RegisterService, which panics on invalid input; nothing else registers. Replace it with a package-level map literal and delete RegisterService.
Done when servicespec has no init(), mutex or panic.
Done in
1c191b4e: the service registry is a map literal; RegisterService, init() and its panics are gone. task check passed.