From 3703b122dc789674ae026c52058beab234d42460 Mon Sep 17 00:00:00 2001 From: yusing Date: Wed, 16 Apr 2025 12:37:12 +0800 Subject: [PATCH] fix: remove unnecessary context --- internal/proxmox/lxc.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/proxmox/lxc.go b/internal/proxmox/lxc.go index a3b9035..fde5b57 100644 --- a/internal/proxmox/lxc.go +++ b/internal/proxmox/lxc.go @@ -42,9 +42,6 @@ const ( ) func (n *Node) LXCAction(ctx context.Context, vmid int, action LXCAction) error { - ctx, cancel := context.WithTimeout(ctx, proxmoxReqTimeout) - defer cancel() - var upid proxmox.UPID if err := n.client.Post(ctx, fmt.Sprintf("/nodes/%s/lxc/%d/status/%s", n.name, vmid, action), nil, &upid); err != nil { return err