satellite/overlay: remove Type field from NodeDossier

The overlay.NodeDossier struct only tracks information about a
storagenode, the field is deprecated and no longer needed.
This is a kademlia left-over.

Updates https://github.com/storj/storj/issues/5426

Change-Id: Ie278ffd88d1b9a9fde6c81eb5f0e287bab8c9ef0
This commit is contained in:
Clement Sam 2023-10-18 18:21:26 +00:00
parent 0d144ee5af
commit bce022ea7a
3 changed files with 0 additions and 4 deletions

View File

@ -242,7 +242,6 @@ type ExitStatusRequest struct {
// NodeDossier is the complete info that the satellite tracks for a storage node. // NodeDossier is the complete info that the satellite tracks for a storage node.
type NodeDossier struct { type NodeDossier struct {
pb.Node pb.Node
Type pb.NodeType
Operator pb.NodeOperator Operator pb.NodeOperator
Capacity pb.NodeCapacity Capacity pb.NodeCapacity
Reputation NodeStats Reputation NodeStats

View File

@ -371,7 +371,6 @@ func TestNodeInfo(t *testing.T) {
dossier := planet.StorageNodes[0].Contact.Service.Local() dossier := planet.StorageNodes[0].Contact.Service.Local()
assert.Equal(t, pb.NodeType_STORAGE, node.Type)
assert.NotEmpty(t, node.Operator.Email) assert.NotEmpty(t, node.Operator.Email)
assert.NotEmpty(t, node.Operator.Wallet) assert.NotEmpty(t, node.Operator.Wallet)
assert.Equal(t, dossier.Operator, node.Operator) assert.Equal(t, dossier.Operator, node.Operator)
@ -496,7 +495,6 @@ func TestUpdateCheckIn(t *testing.T) {
Address: info.Address.GetAddress(), Address: info.Address.GetAddress(),
}, },
}, },
Type: pb.NodeType_STORAGE,
Operator: pb.NodeOperator{ Operator: pb.NodeOperator{
Email: info.Operator.GetEmail(), Email: info.Operator.GetEmail(),
Wallet: info.Operator.GetWallet(), Wallet: info.Operator.GetWallet(),

View File

@ -1070,7 +1070,6 @@ func convertDBNode(ctx context.Context, info *dbx.Node) (_ *overlay.NodeDossier,
Features: uint64(info.Features), Features: uint64(info.Features),
}, },
}, },
Type: pb.NodeType(info.Type),
Operator: pb.NodeOperator{ Operator: pb.NodeOperator{
Email: info.Email, Email: info.Email,
Wallet: info.Wallet, Wallet: info.Wallet,