Skip to content

Commit

Permalink
fix: fix wrong return message for rpc unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Oct 8, 2024
1 parent 0cfee7f commit 6f0f918
Show file tree
Hide file tree
Showing 3 changed files with 368 additions and 359 deletions.
2 changes: 1 addition & 1 deletion packages/node/src/proto/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package topology.node;

service TopologyRpc {
rpc subscribeCro (SubscribeCroRequest ) returns (SubscribeCroResponse );
rpc unsubscribeCro (UnsubscribeCroRequest ) returns (UnsubscribeCroRequest );
rpc unsubscribeCro (UnsubscribeCroRequest ) returns (UnsubscribeCroResponse );
rpc getCroHashGraph (GetCroHashGraphRequest ) returns (GetCroHashGraphResponse );
}

Expand Down
15 changes: 12 additions & 3 deletions packages/node/src/proto/rpc_grpc_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,15 @@ function deserialize_topology_node_UnsubscribeCroRequest(buffer_arg) {
return node_src_proto_rpc_pb.UnsubscribeCroRequest.decode(new Uint8Array(buffer_arg));
}

function serialize_topology_node_UnsubscribeCroResponse(arg) {
let encoded = node_src_proto_rpc_pb.UnsubscribeCroResponse.encode(arg).finish()
return Buffer.from(encoded);
}

function deserialize_topology_node_UnsubscribeCroResponse(buffer_arg) {
return node_src_proto_rpc_pb.UnsubscribeCroResponse.decode(new Uint8Array(buffer_arg));
}

export const TopologyRpcService = {
subscribeCro: {
path: '/topology.node.TopologyRpc/subscribeCro',
Expand All @@ -62,11 +71,11 @@ export const TopologyRpcService = {
requestStream: false,
responseStream: false,
requestType: node_src_proto_rpc_pb.UnsubscribeCroRequest,
responseType: node_src_proto_rpc_pb.UnsubscribeCroRequest,
responseType: node_src_proto_rpc_pb.UnsubscribeCroResponse,
requestSerialize: serialize_topology_node_UnsubscribeCroRequest,
requestDeserialize: deserialize_topology_node_UnsubscribeCroRequest,
responseSerialize: serialize_topology_node_UnsubscribeCroRequest,
responseDeserialize: deserialize_topology_node_UnsubscribeCroRequest,
responseSerialize: serialize_topology_node_UnsubscribeCroResponse,
responseDeserialize: deserialize_topology_node_UnsubscribeCroResponse,
},
getCroHashGraph: {
path: '/topology.node.TopologyRpc/getCroHashGraph',
Expand Down
Loading

0 comments on commit 6f0f918

Please sign in to comment.