请求完成设置缓存

This commit is contained in:
zhangdeman committed 2024-06-03 18:47:47 +08:00
1 parent 3e5e0f8f1b
commit 81d01affc9
1 file changed
+3
+3
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.