Skip to content

Commit 55558e0

Browse files
authored
fix: request time out (#212)
1 parent 891e2ad commit 55558e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/chatgpt/chatgpt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func New(userId string) *ChatGPT {
2828
var ctx context.Context
2929
var cancel func()
3030

31-
ctx, cancel = context.WithTimeout(context.Background(), 600)
31+
ctx, cancel = context.WithTimeout(context.Background(), 600*time.Second)
3232
timeOutChan := make(chan struct{}, 1)
3333
go func() {
3434
<-ctx.Done()

0 commit comments

Comments
 (0)