config: service registry is static data #1926

Closed
opened 2026-11-12 16:35:17 +00:00 by sam · 1 comment
Owner

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.

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.
sam added the chorelow labels 2026-11-12 16:35:17 +00:00
Author
Owner

Done in 1c191b4e: the service registry is a map literal; RegisterService, init() and its panics are gone. task check passed.

Done in 1c191b4e: the service registry is a map literal; RegisterService, init() and its panics are gone. task check passed.
sam closed this issue 2026-11-12 16:57:18 +00:00
sam added a new dependency 2026-11-13 02:50:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1926