go-kit/kit

SD - Registrator error handling

Open

#780 创建于 2018年10月23日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Go (2,446 fork)batch import
enhancementhelp wantednewbie friendly

仓库指标

Star
 (27,422 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Is there any reason for not returning any error on the registration of a service? https://github.com/go-kit/kit/blob/ec0cc13a9b00d1214c9b7ae63d7b750626b54c6d/sd/registrar.go#L11

From my point of view, if a service doesn't manage to correctly register, then it might be nice to retry later. Binding to events to watch if you're correctly registered seems overkilled compared to just checking this error.

What are your thoughts?

贡献者指南