From 94eeb3abb27f322be10fc1f845c2742a257c83e7 Mon Sep 17 00:00:00 2001 From: withchao <993506633@qq.com> Date: Thu, 12 Jan 2023 10:12:38 +0800 Subject: [PATCH] 1 --- internal/api_to_rpc/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api_to_rpc/api.go b/internal/api_to_rpc/api.go index 39b080051..5eb608e11 100644 --- a/internal/api_to_rpc/api.go +++ b/internal/api_to_rpc/api.go @@ -19,7 +19,7 @@ func ApiToRpc(c *gin.Context, apiReq, apiResp interface{}, rpcName string, rpcCl return } trace_log.SetContextInfo(nCtx, "BindJSON", nil, "params", apiReq) - etcdConn, err := getcdv3.GetConn(c, rpcName) + etcdConn, err := getcdv3.GetConn(nCtx, rpcName) if err != nil { trace_log.WriteErrorResponse(nCtx, "GetDefaultConn", err) return