fix grpc dialer

This commit is contained in:
ginuerzh
2022-08-19 22:26:40 +08:00
parent 4c1da3e4d4
commit 8098e9f976
3 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ func (c *http2Connector) Connect(ctx context.Context, conn net.Conn, network, ad
}
client := v.GetMetadata().Get("client").(*http.Client)
resp, err := client.Do(req.WithContext(ctx))
resp, err := client.Do(req)
if err != nil {
log.Error(err)
conn.Close()