Skip to content

Commit 82937ba

Browse files
authored
[client] Increase logout timeout (#4311)
1 parent 0f52144 commit 82937ba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/cmd/logout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var logoutCmd = &cobra.Command{
2020

2121
cmd.SetOut(cmd.OutOrStdout())
2222

23-
ctx, cancel := context.WithTimeout(context.Background(), time.Second*7)
23+
ctx, cancel := context.WithTimeout(cmd.Context(), time.Second*15)
2424
defer cancel()
2525

2626
conn, err := DialClientGRPCServer(ctx, daemonAddr)

shared/management/client/grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ func (c *GrpcClient) Logout() error {
503503
return fmt.Errorf("get server public key: %w", err)
504504
}
505505

506-
mgmCtx, cancel := context.WithTimeout(c.ctx, time.Second*5)
506+
mgmCtx, cancel := context.WithTimeout(c.ctx, time.Second*15)
507507
defer cancel()
508508

509509
message := &proto.Empty{}

0 commit comments

Comments
 (0)