Skip to content

Commit

Permalink
Rename follower route to force fullnode upgrades (MystenLabs#4256)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Aug 24, 2022
1 parent 46a7363 commit 7f1ffc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/sui-core/src/authority_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,12 @@ impl Validator for ValidatorService {
Ok(tonic::Response::new(response))
}

type BatchInfoStream = BoxStream<'static, Result<BatchInfoResponseItem, tonic::Status>>;
type FollowTxStreamStream = BoxStream<'static, Result<BatchInfoResponseItem, tonic::Status>>;

async fn batch_info(
&self,
request: tonic::Request<BatchInfoRequest>,
) -> Result<tonic::Response<Self::BatchInfoStream>, tonic::Status> {
) -> Result<tonic::Response<Self::FollowTxStreamStream>, tonic::Status> {
let request = request.into_inner();

let xstream = self
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-network/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ fn main() -> Result<()> {
.method(
Method::builder()
.name("batch_info")
.route_name("BatchInfo")
.route_name("FollowTxStream")
.input_type("sui_types::messages::BatchInfoRequest")
.output_type("sui_types::messages::BatchInfoResponseItem")
.server_streaming()
Expand Down

0 comments on commit 7f1ffc4

Please sign in to comment.