mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-18 08:16:39 +00:00
[client] Increase logout timeout (#4311)
This commit is contained in:
@@ -20,7 +20,7 @@ var logoutCmd = &cobra.Command{
|
|||||||
|
|
||||||
cmd.SetOut(cmd.OutOrStdout())
|
cmd.SetOut(cmd.OutOrStdout())
|
||||||
|
|
||||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*7)
|
ctx, cancel := context.WithTimeout(cmd.Context(), time.Second*15)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
conn, err := DialClientGRPCServer(ctx, daemonAddr)
|
conn, err := DialClientGRPCServer(ctx, daemonAddr)
|
||||||
|
|||||||
@@ -503,7 +503,7 @@ func (c *GrpcClient) Logout() error {
|
|||||||
return fmt.Errorf("get server public key: %w", err)
|
return fmt.Errorf("get server public key: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
mgmCtx, cancel := context.WithTimeout(c.ctx, time.Second*5)
|
mgmCtx, cancel := context.WithTimeout(c.ctx, time.Second*15)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
message := &proto.Empty{}
|
message := &proto.Empty{}
|
||||||
|
|||||||
Reference in New Issue
Block a user