silenceper
silenceper
多谢反馈。 这里的问题应该是原本Get的请求会被阻塞住而导致一直无法获得连接,而如果是新建的Get方法,还是会通过新建连接返回。 这里应该在这里等待加一个超时返回,你觉得呢? @upwell
看了下database/sql中提供的连接池,通过使用者传入context包,让调用方进行控制
这个可以用,我找时间把这块优化下
@grigorig any update?
@metalmatze We also need this feature too. We customized the network in Kubernetes to isolate the pod network from the host network. And we want prometheus to use the host...
暂不知此`go build`命令可配置。 如果对这个特性感兴趣的,欢迎提pr
Thanks for the feedback,I will confirm this issue later.
@kabessao Are you using the latest version? A one-second delay has been processed in the project,Is it that the delay is not enough. https://github.com/silenceper/gowatch/blob/f7b7964cc6d5b41313282c5bb3feb4c452e7334c/gowatch.go#L58-L66 https://github.com/silenceper/gowatch/blob/f7b7964cc6d5b41313282c5bb3feb4c452e7334c/gowatch.go#L110-L118
try this: ``` go get -u github.com/silenceper/gowatch ```
Maybe you can also try to download `https://github.com/silenceper/gowatch/releases/tag/v1.5.1` from here, and install the binary files directly