weaver
weaver copied to clipboard
weaver status: Get "http://127.0.0.1:xxxxx/debug/serviceweaver/status" error
when i click stop button in golang idea debug mode, the file in share\serviceweaver\single_registry cannot be deleted.
In run mode or ctrl + c is ok
before goland Version: 2022.3,IDE sends os.Kill signal which cannot be caught.I solved the problem by upgrading IDE version.
if weaver services doesn't stop gracefully ,Registry.listwill return dead registration causeweaver status doesn't work.
// list returns all registrations, dead or alive.
func (r *Registry) list() ([]Registration, error)