File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed
Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ pub enum LogCommand {
135135pub enum ClusterCommand {
136136 Rejoin ,
137137 Members ,
138- MembershipStates { local : bool } ,
138+ MembershipStates ,
139139 SetId ( ClusterId ) ,
140140}
141141
@@ -347,20 +347,8 @@ async fn handle_conn(
347347 }
348348 send_success ( & mut stream) . await ;
349349 }
350- Command :: Cluster ( ClusterCommand :: MembershipStates { local } ) => {
350+ Command :: Cluster ( ClusterCommand :: MembershipStates ) => {
351351 info_log ( & mut stream, "gathering membership state" ) . await ;
352-
353- if local {
354- let members = agent. members ( ) . read ( ) . states . clone ( ) ;
355- for member in members {
356- match serde_json:: to_value ( & member) {
357- Ok ( json) => send ( & mut stream, Response :: Json ( json) ) . await ,
358- Err ( e) => send_error ( & mut stream, e) . await ,
359- }
360- }
361- send_success ( & mut stream) . await ;
362- continue ;
363- }
364352 let ( tx, mut rx) = mpsc:: channel ( 1024 ) ;
365353 if let Err ( e) = agent
366354 . tx_foca ( )
Original file line number Diff line number Diff line change @@ -370,10 +370,10 @@ async fn process_cli(cli: Cli) -> eyre::Result<()> {
370370 ) )
371371 . await ?;
372372 }
373- Command :: Cluster ( ClusterCommand :: MembershipStates { local } ) => {
373+ Command :: Cluster ( ClusterCommand :: MembershipStates ) => {
374374 let mut conn = AdminConn :: connect ( cli. admin_path ( ) ) . await ?;
375375 conn. send_command ( corro_admin:: Command :: Cluster (
376- corro_admin:: ClusterCommand :: MembershipStates { local : * local } ,
376+ corro_admin:: ClusterCommand :: MembershipStates ,
377377 ) )
378378 . await ?;
379379 }
@@ -773,10 +773,7 @@ enum ClusterCommand {
773773 /// Dumps the current members
774774 Members ,
775775 /// Dumps the current member SWIM states
776- MembershipStates {
777- #[ arg( long, default_value = "false" ) ]
778- local : bool ,
779- } ,
776+ MembershipStates ,
780777 /// Set a new cluster ID for the node
781778 SetId { cluster_id : u16 } ,
782779}
You can’t perform that action at this time.
0 commit comments