refactor(agent): replace deprecated context import with standard context package

This commit is contained in:
yusing 2025-04-02 15:31:50 +08:00
parent f661907268
commit 51813e6030
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,7 @@
package agent
import (
"context"
"crypto/tls"
"crypto/x509"
"encoding/json"
@ -18,7 +19,6 @@ import (
"github.com/yusing/go-proxy/internal/net/types"
"github.com/yusing/go-proxy/internal/task"
"github.com/yusing/go-proxy/pkg"
"golang.org/x/net/context"
)
type AgentConfig struct {

View file

@ -1,11 +1,11 @@
package agent
import (
"context"
"io"
"net/http"
"github.com/coder/websocket"
"golang.org/x/net/context"
)
func (cfg *AgentConfig) Do(ctx context.Context, method, endpoint string, body io.Reader) (*http.Response, error) {