Skip to content

Commit

Permalink
fix: request time out (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf authored Apr 15, 2023
1 parent 891e2ad commit 55558e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/chatgpt/chatgpt.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func New(userId string) *ChatGPT {
var ctx context.Context
var cancel func()

ctx, cancel = context.WithTimeout(context.Background(), 600)
ctx, cancel = context.WithTimeout(context.Background(), 600*time.Second)
timeOutChan := make(chan struct{}, 1)
go func() {
<-ctx.Done()
Expand Down

0 comments on commit 55558e0

Please sign in to comment.