Skip to content

Commit bafb8b0

Browse files
authored
Merge pull request #54 from SpenserCai/dev
change time out
2 parents d6a40f5 + 11c9a6a commit bafb8b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

webui.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
* @Date: 2023-08-11 13:15:25
44
* @version:
55
* @LastEditors: SpenserCai
6-
* @LastEditTime: 2023-08-12 01:08:28
6+
* @LastEditTime: 2023-08-26 12:35:45
77
* @Description: file content
88
*/
99
package webui
1010

1111
import (
12+
"time"
13+
14+
rclient "github.com/go-openapi/runtime/client"
15+
1216
StableDiffClient "github.com/SpenserCai/sd-webui-go/stablediffusion/client"
1317

1418
"github.com/go-openapi/strfmt"
@@ -19,6 +23,7 @@ type StableDiffInterface struct {
1923
}
2024

2125
func NewStableDiffInterface(host string) *StableDiffInterface {
26+
rclient.DefaultTimeout = 120 * time.Second
2227
var client *StableDiffClient.StableDiffusion
2328
if host == "" {
2429
client = StableDiffClient.NewHTTPClient(strfmt.Default)

0 commit comments

Comments
 (0)