mirror of
https://github.com/zhengkai/orca.git
synced 2026-03-01 00:35:36 +08:00
fix: fetch timeout
This commit is contained in:
@@ -35,7 +35,7 @@ func (pr *row) fetchRemote() (ab []byte, err error) {
|
|||||||
req.Header.Set(`Authorization`, `Bearer `+config.OpenAIKey)
|
req.Header.Set(`Authorization`, `Bearer `+config.OpenAIKey)
|
||||||
|
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
// Timeout: 30 * time.Second,
|
Timeout: 20 * time.Second,
|
||||||
}
|
}
|
||||||
t := time.Now()
|
t := time.Now()
|
||||||
rsp, err := client.Do(req)
|
rsp, err := client.Do(req)
|
||||||
|
|||||||
Reference in New Issue
Block a user