Skip to content

Commit

Permalink
fix(halalcloud): fix the timeout issue when logging in (#6960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Three-taile-dragon authored Aug 10, 2024
1 parent 74f8295 commit 2d77db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/halalcloud/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (d *HalalCloud) IsLogin() bool {
if err != nil {
return false
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
result, err := pbPublicUser.NewPubUserClient(serv.GetGrpcConnection()).Get(ctx, &pbPublicUser.User{
Identity: "",
Expand Down
2 changes: 1 addition & 1 deletion drivers/halalcloud/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (d *HalalCloud) NewAuthServiceWithOauth(options ...HalalOption) (*AuthServi
}
defer grpcConnection.Close()
userClient := pbPublicUser.NewPubUserClient(grpcConnection)
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()
stateString := uuid.New().String()
// queryValues.Add("callback", oauthToken.Callback)
Expand Down

0 comments on commit 2d77db6

Please sign in to comment.