Skip to content

Commit b9d3377

Browse files
committed
Revert "[RSDK-8344] Expose machine internet connectivity (viamrobotics#474)"
This reverts commit 3911cad.
1 parent 8478349 commit b9d3377

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

rpc/dialer.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"golang.org/x/net/proxy"
2424
"google.golang.org/grpc"
2525
"google.golang.org/grpc/codes"
26-
"google.golang.org/grpc/connectivity"
2726
"google.golang.org/grpc/credentials"
2827
"google.golang.org/grpc/credentials/insecure"
2928
"google.golang.org/grpc/keepalive"
@@ -62,9 +61,6 @@ type Dialer interface {
6261
Close() error
6362
}
6463

65-
// Unknown indicates an unknown connectivity state.
66-
const Unknown connectivity.State = 5
67-
6864
// A ClientConn is a wrapper around the gRPC client connection interface but ensures
6965
// there is a way to close the connection.
7066
type ClientConn interface {
@@ -74,8 +70,6 @@ type ClientConn interface {
7470
// a PeerConnection.
7571
PeerConn() *webrtc.PeerConnection
7672
Close() error
77-
78-
GetState() connectivity.State
7973
}
8074

8175
// A ClientConnAuthenticator supports instructing a connection to authenticate now.

rpc/wrtc_client_channel.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import (
1010
grpc_logging "github.com/grpc-ecosystem/go-grpc-middleware/logging"
1111
"github.com/viamrobotics/webrtc/v3"
1212
"google.golang.org/grpc"
13-
"google.golang.org/grpc/connectivity"
1413
"google.golang.org/grpc/metadata"
1514
"google.golang.org/protobuf/proto"
1615
"google.golang.org/protobuf/types/known/durationpb"
@@ -334,11 +333,6 @@ func (ch *webrtcClientChannel) writeReset(stream *webrtcpb.Stream) error {
334333
})
335334
}
336335

337-
// GetState returns the current connectivity state of the channel.
338-
func (ch *webrtcClientChannel) GetState() connectivity.State {
339-
return Unknown
340-
}
341-
342336
func newClientLoggerFields(fullMethodString string) []any {
343337
service := path.Dir(fullMethodString)[1:]
344338
method := path.Base(fullMethodString)

0 commit comments

Comments
 (0)