Skip to content

Commit 8c64fc9

Browse files
author
1911860538
committed
refactor(contrib/opensergo): replace golang.org/x/net/context with standard context
1 parent fb8e43e commit 8c64fc9

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

contrib/opensergo/go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.22
55
require (
66
github.com/go-kratos/kratos/v2 v2.9.2
77
github.com/opensergo/opensergo-go v0.0.0-20220331070310-e5b01fee4d1c
8-
golang.org/x/net v0.33.0
98
google.golang.org/genproto/googleapis/api v0.0.0-20240102182953-50ed04b92917
109
google.golang.org/grpc v1.61.1
1110
google.golang.org/protobuf v1.33.0

contrib/opensergo/opensergo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package opensergo
22

33
import (
4+
"context"
45
"encoding/json"
56
"net"
67
"net/http"
@@ -10,7 +11,6 @@ import (
1011
"time"
1112

1213
v1 "github.com/opensergo/opensergo-go/proto/service_contract/v1"
13-
"golang.org/x/net/context"
1414
"google.golang.org/genproto/googleapis/api/annotations"
1515
"google.golang.org/grpc"
1616
"google.golang.org/grpc/credentials/insecure"

contrib/opensergo/opensergo_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package opensergo
22

33
import (
4+
"context"
45
"net"
56
"net/http"
67
"os"
@@ -9,7 +10,6 @@ import (
910
"testing"
1011

1112
srvContractPb "github.com/opensergo/opensergo-go/proto/service_contract/v1"
12-
"golang.org/x/net/context"
1313
"google.golang.org/genproto/googleapis/api/annotations"
1414
"google.golang.org/grpc"
1515
"google.golang.org/protobuf/proto"

0 commit comments

Comments
 (0)