Commit c2fd0f1b authored by Mrs4s's avatar Mrs4s

fix #372.

parent 8ab874ca
...@@ -131,7 +131,7 @@ func (c *httpClient) onBotPushEvent(m coolq.MSG) { ...@@ -131,7 +131,7 @@ func (c *httpClient) onBotPushEvent(m coolq.MSG) {
} }
return h return h
}()).SetTimeout(time.Second * time.Duration(c.timeout)).F().Retry().Attempt(5). }()).SetTimeout(time.Second * time.Duration(c.timeout)).F().Retry().Attempt(5).
WaitTime(time.Millisecond * 500).MaxWaitTime(time.Second * 5). WaitTime(time.Millisecond * 500).MaxWaitTime(time.Second).
Do() Do()
if err != nil { if err != nil {
log.Warnf("上报Event数据 %v 到 %v 失败: %v", m.ToJson(), c.addr, err) log.Warnf("上报Event数据 %v 到 %v 失败: %v", m.ToJson(), c.addr, err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment