go-kit/kit

SD - Registrator error handling

開放

#780 建立於 2018年10月23日

 (1 則留言) (0 個反應) (0 位負責人)Go (2,446 個分叉)batch import
enhancementhelp wantednewbie friendly

倉庫指標

星標
 (27,422 顆星)
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?

貢獻者指南