fix(halalcloud): fix the timeout issue when logging in (#6960)

This commit is contained in:
YangXu
2024-08-10 20:58:10 +08:00
committed by GitHub
parent 74f8295960
commit 2d77db6bc2
2 changed files with 2 additions and 2 deletions

View File

@ -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: "",