Skip to content

Commit f41ad69

Browse files
committed
Cleanup unused fields in RemoteCVDLocator
1 parent fe79eed commit f41ad69

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

pkg/cli/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ func NewConnController(
377377
if err != nil {
378378
return nil, err
379379
}
380-
logger.Printf("Connecting to %s in host %s", cvd.Name, cvd.Host)
380+
logger.Printf("Connecting to %s in host %s", cvd.ID, cvd.Host)
381381
f, err := NewForwarder(logger)
382382
if err != nil {
383383
return nil, fmt.Errorf("failed to instantiate ADB forwarder for %q: %w", cvd.WebRTCDeviceID, err)

pkg/cli/cvd.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,9 @@ type RemoteCVDLocator struct {
4141
Host string `json:"host"`
4242
// Identifier within the whole fleet.
4343
ID string `json:"id"`
44-
// Identifier within a group.
45-
Name string `json:"name"`
46-
// Instead of `Name`, `WebRTCDeviceID` is the identifier used for setting up the adb connections. It
44+
// `WebRTCDeviceID` is the identifier used for setting up the adb connections. It
4745
// contains the group name and the device name, eg: "cvd-1_1".
4846
WebRTCDeviceID string `json:"webrtc_device_id"`
49-
// ADB port of Cuttlefish instance.
50-
ADBSerial string `json:"adb_serial"`
5147
}
5248

5349
func (l *RemoteCVDLocator) Group() string {
@@ -72,9 +68,7 @@ func NewRemoteCVD(host string, cvd *hoapi.CVD) *RemoteCVD {
7268
RemoteCVDLocator: RemoteCVDLocator{
7369
Host: host,
7470
ID: cvd.ID(),
75-
Name: cvd.Name,
7671
WebRTCDeviceID: cvd.WebRTCDeviceID,
77-
ADBSerial: cvd.ADBSerial,
7872
},
7973
Status: cvd.Status,
8074
Displays: cvd.Displays,

0 commit comments

Comments
 (0)