请求完成设置缓存
This commit is contained in:
parent
3e5e0f8f1b
commit
81d01affc9
@ -159,6 +159,9 @@ func (hc *HttpClient) Request() *define.Response {
|
||||
if response.RestyResponse, err = hc.request.Send(); nil != err {
|
||||
time.Sleep(time.Duration(hc.reqConfig.RetryRule.RetryTimeInterval) * time.Millisecond)
|
||||
}
|
||||
|
||||
// 设置缓存
|
||||
response.IsCache, response.CacheError = hc.setCacheResult(response)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user