@@ -43,7 +43,7 @@ func register(c *gin.Context) {
4343 })
4444 return
4545 }
46- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
46+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
4747 defer cancel ()
4848 ret , err := (* cli ).Register (ctx , & pb.RegisterRequest {
4949 Username : obj .Username ,
@@ -99,7 +99,7 @@ func login(c *gin.Context) {
9999 })
100100 return
101101 }
102- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
102+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
103103 defer cancel ()
104104 ret , err := (* cli ).Login (ctx , & pb.LoginRequest {
105105 Username : obj .Username ,
@@ -161,7 +161,7 @@ func delete(c *gin.Context) {
161161 })
162162 return
163163 }
164- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
164+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
165165 defer cancel ()
166166 ret , err := (* cli ).Logout (ctx , & pb.LogoutRequest {
167167 UserId : uid ,
@@ -195,7 +195,7 @@ func getUserInfo(c *gin.Context) {
195195 })
196196 return
197197 }
198- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
198+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
199199 defer cancel ()
200200 ret , err := (* cli ).GetUserInfo (ctx , & pb.GetUserInfoRequest {
201201 UserId : uid ,
@@ -237,7 +237,7 @@ func getUserPublicInfo(c *gin.Context) {
237237 })
238238 return
239239 }
240- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
240+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
241241 defer cancel ()
242242 ret , err := (* cli ).GetOtherUserInfo (ctx , & pb.GetOtherUserInfoRequest {
243243 Username : username ,
@@ -285,7 +285,7 @@ func changePassword(c *gin.Context) {
285285 })
286286 return
287287 }
288- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
288+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
289289 defer cancel ()
290290 ret , err := (* cli ).ChangePassword (ctx , & pb.ChangePasswordRequest {
291291 UserId : uid ,
@@ -330,7 +330,7 @@ func changeNickname(c *gin.Context) {
330330 })
331331 return
332332 }
333- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
333+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
334334 defer cancel ()
335335 ret , err := (* cli ).ChangeNickname (ctx , & pb.ChangeNicknameRequest {
336336 UserId : uid ,
@@ -375,7 +375,7 @@ func changeEmail(c *gin.Context) {
375375 })
376376 return
377377 }
378- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
378+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
379379 defer cancel ()
380380 ret , err := (* cli ).ChangeEmail (ctx , & pb.ChangeEmailRequest {
381381 UserId : uid ,
@@ -420,7 +420,7 @@ func changePhoneNumber(c *gin.Context) {
420420 })
421421 return
422422 }
423- ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second )
423+ ctx , cancel := context .WithTimeout (context .Background (), 10 * time .Second )
424424 defer cancel ()
425425 ret , err := (* cli ).ChangePhoneNumber (ctx , & pb.ChangePhoneNumberRequest {
426426 UserId : uid ,
0 commit comments