File tree Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Expand file tree Collapse file tree 2 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ import (
23
23
"golang.org/x/net/proxy"
24
24
"google.golang.org/grpc"
25
25
"google.golang.org/grpc/codes"
26
- "google.golang.org/grpc/connectivity"
27
26
"google.golang.org/grpc/credentials"
28
27
"google.golang.org/grpc/credentials/insecure"
29
28
"google.golang.org/grpc/keepalive"
@@ -62,9 +61,6 @@ type Dialer interface {
62
61
Close () error
63
62
}
64
63
65
- // Unknown indicates an unknown connectivity state.
66
- const Unknown connectivity.State = 5
67
-
68
64
// A ClientConn is a wrapper around the gRPC client connection interface but ensures
69
65
// there is a way to close the connection.
70
66
type ClientConn interface {
@@ -74,8 +70,6 @@ type ClientConn interface {
74
70
// a PeerConnection.
75
71
PeerConn () * webrtc.PeerConnection
76
72
Close () error
77
-
78
- GetState () connectivity.State
79
73
}
80
74
81
75
// A ClientConnAuthenticator supports instructing a connection to authenticate now.
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
grpc_logging "github.com/grpc-ecosystem/go-grpc-middleware/logging"
11
11
"github.com/viamrobotics/webrtc/v3"
12
12
"google.golang.org/grpc"
13
- "google.golang.org/grpc/connectivity"
14
13
"google.golang.org/grpc/metadata"
15
14
"google.golang.org/protobuf/proto"
16
15
"google.golang.org/protobuf/types/known/durationpb"
@@ -334,11 +333,6 @@ func (ch *webrtcClientChannel) writeReset(stream *webrtcpb.Stream) error {
334
333
})
335
334
}
336
335
337
- // GetState returns the current connectivity state of the channel.
338
- func (ch * webrtcClientChannel ) GetState () connectivity.State {
339
- return Unknown
340
- }
341
-
342
336
func newClientLoggerFields (fullMethodString string ) []any {
343
337
service := path .Dir (fullMethodString )[1 :]
344
338
method := path .Base (fullMethodString )
You can’t perform that action at this time.
0 commit comments