Skip to content

Commit

Permalink
add deprecated field, change field id for the new field
Browse files Browse the repository at this point in the history
  • Loading branch information
teogeb committed Oct 4, 2024
1 parent e0bef26 commit 79f594c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/trackerless-network/protos/NetworkRpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ enum ProxyDirection {
message StreamPartitionInfo {
string id = 1;
repeated dht.PeerDescriptor controlLayerNeighbors = 2;
repeated ContentDeliveryLayerNeighborInfo contentDeliveryLayerNeighbors = 3;
repeated dht.PeerDescriptor deprecatedContentDeliveryLayerNeighbors = 3;
repeated ContentDeliveryLayerNeighborInfo contentDeliveryLayerNeighbors = 4;
}

message ContentDeliveryLayerNeighborInfo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export class ContentDeliveryManager extends EventEmitter<Events> {
return {
id: streamPartId,
controlLayerNeighbors: stream.discoveryLayerNode.getNeighbors(),
deprecatedContentDeliveryLayerNeighbors: [],
contentDeliveryLayerNeighbors: stream.node.getInfos()
}
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ export interface StreamPartitionInfo {
*/
controlLayerNeighbors: PeerDescriptor[];
/**
* @generated from protobuf field: repeated ContentDeliveryLayerNeighborInfo contentDeliveryLayerNeighbors = 3;
* @generated from protobuf field: repeated dht.PeerDescriptor deprecatedContentDeliveryLayerNeighbors = 3;
*/
deprecatedContentDeliveryLayerNeighbors: PeerDescriptor[];
/**
* @generated from protobuf field: repeated ContentDeliveryLayerNeighborInfo contentDeliveryLayerNeighbors = 4;
*/
contentDeliveryLayerNeighbors: ContentDeliveryLayerNeighborInfo[];
}
Expand Down Expand Up @@ -678,7 +682,8 @@ class StreamPartitionInfo$Type extends MessageType<StreamPartitionInfo> {
super("StreamPartitionInfo", [
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
{ no: 2, name: "controlLayerNeighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
{ no: 3, name: "contentDeliveryLayerNeighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ContentDeliveryLayerNeighborInfo }
{ no: 3, name: "deprecatedContentDeliveryLayerNeighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => PeerDescriptor },
{ no: 4, name: "contentDeliveryLayerNeighbors", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => ContentDeliveryLayerNeighborInfo }
]);
}
}
Expand Down

0 comments on commit 79f594c

Please sign in to comment.