Add user-define configuration feature and retry feature for pushing config.
The main idea is to add retry ability for stream.SendMsg. From the general perspective, adopt third-party lib go-retry for this feature. Meanwhile, add options feature to store user's configuration.
For the timeout issue, it seems to be set from the client side from the grpc document.
Add user-define configuration feature and retry feature for pushing config.
The main idea is to add retry ability for
stream.SendMsg
. From the general perspective, adopt third-party libgo-retry
for this feature. Meanwhile, addoptions
feature to store user's configuration.For the timeout issue, it seems to be set from the client side from the grpc document.
增加了配置传参和配置推送重试的功能。
设计思路是在推动配置的
stream.SendMsg
上增加重试能力,在更通用性以及避免重复造轮子,采用了 go-retry 的三方库。同时为了实现重试等功能的可配置,在整个控制面上增加了options
功能来保存用户配置。grpc的超时设置翻看了下grpc文档以及源码,初步得出的结论是要在客户端上设置,配置推送作为服务端,没看到有拓展的接口可以进行设置。 @sczyh30