File tree 4 files changed +5
-7
lines changed
4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 9
9
"time"
10
10
11
11
"google.golang.org/grpc"
12
- "google.golang.org/grpc/credentials/insecure"
13
12
14
13
"github.com/tendermint/tendermint/abci/types"
15
14
"github.com/tendermint/tendermint/libs/log"
@@ -58,7 +57,7 @@ func (cli *grpcClient) OnStart(ctx context.Context) error {
58
57
RETRY_LOOP:
59
58
for {
60
59
conn , err := grpc .Dial (cli .addr ,
61
- grpc .WithTransportCredentials ( insecure . NewCredentials () ),
60
+ grpc .WithInsecure ( ),
62
61
grpc .WithContextDialer (dialerFunc ),
63
62
)
64
63
if err != nil {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ require (
32
32
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4
33
33
golang.org/x/net v0.0.0-20220520000938-2e3eb7b945c2
34
34
golang.org/x/sync v0.0.0-20220513210516-0976fa681c29
35
- google.golang.org/grpc v1.47.0
35
+ google.golang.org/grpc v1.46.2
36
36
pgregory.net/rapid v0.4.7
37
37
)
38
38
Original file line number Diff line number Diff line change @@ -1795,9 +1795,8 @@ google.golang.org/grpc v1.43.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ5
1795
1795
google.golang.org/grpc v1.44.0 /go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU =
1796
1796
google.golang.org/grpc v1.45.0 /go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ =
1797
1797
google.golang.org/grpc v1.46.0 /go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk =
1798
+ google.golang.org/grpc v1.46.2 h1:u+MLGgVf7vRdjEYZ8wDFhAVNmhkbJ5hmrA1LMWK1CAQ =
1798
1799
google.golang.org/grpc v1.46.2 /go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk =
1799
- google.golang.org/grpc v1.47.0 h1:9n77onPX5F3qfFCqjy9dhn8PbNQsIKeVU04J9G7umt8 =
1800
- google.golang.org/grpc v1.47.0 /go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk =
1801
1800
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0 /go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw =
1802
1801
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd /go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8 =
1803
1802
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64 /go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0 =
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import (
12
12
13
13
"google.golang.org/grpc"
14
14
"google.golang.org/grpc/credentials"
15
- "google.golang.org/grpc/credentials/insecure"
15
+
16
16
"google.golang.org/grpc/keepalive"
17
17
18
18
"github.com/tendermint/tendermint/config"
@@ -100,7 +100,7 @@ func DialRemoteSigner(
100
100
transportSecurity = GenerateTLS (cfg .ClientCertificateFile (),
101
101
cfg .ClientKeyFile (), cfg .RootCAFile (), logger )
102
102
} else {
103
- transportSecurity = grpc .WithTransportCredentials ( insecure . NewCredentials () )
103
+ transportSecurity = grpc .WithInsecure ( )
104
104
logger .Info ("Using an insecure gRPC connection!" )
105
105
}
106
106
You can’t perform that action at this time.
0 commit comments