@@ -344,8 +344,8 @@ init([]) ->
344344 Nodes = possibly_partitioned_nodes (),
345345 startup_log (Nodes ),
346346 Monitors = lists :foldl (fun (Node , Monitors0 ) ->
347- pmon :monitor ({rabbit , Node }, Monitors0 )
348- end , pmon :new (), Nodes ),
347+ pmon :monitor ({rabbit , Node }, Monitors0 )
348+ end , pmon :new (), Nodes ),
349349 {ok , ensure_keepalive_timer (# state {monitors = Monitors ,
350350 subscribers = pmon :new (),
351351 partitions = [],
@@ -420,12 +420,12 @@ handle_cast({check_partial_partition, Node, Rep, NodeGUID, MyGUID, RepGUID},
420420 fun () ->
421421 case rpc :call (Node , rabbit , is_running , []) of
422422 {badrpc , _ } -> ok ;
423- _ ->
424- rabbit_log :warning (" Received a 'DOWN' message"
425- " from ~p but still can"
426- " communicate with it ~n " ,
427- [Node ]),
428- cast (Rep , {partial_partition ,
423+ _ ->
424+ rabbit_log :warning (" Received a 'DOWN' message"
425+ " from ~p but still can"
426+ " communicate with it ~n " ,
427+ [Node ]),
428+ cast (Rep , {partial_partition ,
429429 Node , node (), RepGUID })
430430 end
431431 end );
@@ -499,18 +499,18 @@ handle_cast({node_up, Node, NodeType},
499499 rabbit_log :info (" rabbit on node ~p up~n " , [Node ]),
500500 {AllNodes , DiscNodes , RunningNodes } = read_cluster_status (),
501501 write_cluster_status ({add_node (Node , AllNodes ),
502- case NodeType of
503- disc -> add_node (Node , DiscNodes );
504- ram -> DiscNodes
505- end ,
506- add_node (Node , RunningNodes )}),
502+ case NodeType of
503+ disc -> add_node (Node , DiscNodes );
504+ ram -> DiscNodes
505+ end ,
506+ add_node (Node , RunningNodes )}),
507507 ok = handle_live_rabbit (Node ),
508508 Monitors1 = case pmon :is_monitored ({rabbit , Node }, Monitors ) of
509- true ->
510- Monitors ;
511- false ->
512- pmon :monitor ({rabbit , Node }, Monitors )
513- end ,
509+ true ->
510+ Monitors ;
511+ false ->
512+ pmon :monitor ({rabbit , Node }, Monitors )
513+ end ,
514514 {noreply , maybe_autoheal (State # state {monitors = Monitors1 })};
515515
516516handle_cast ({joined_cluster , Node , NodeType }, State ) ->
@@ -584,7 +584,7 @@ handle_info({mnesia_system_event,
584584 State1 = case pmon :is_monitored ({rabbit , Node }, Monitors ) of
585585 true -> State ;
586586 false -> State # state {
587- monitors = pmon :monitor ({rabbit , Node }, Monitors )}
587+ monitors = pmon :monitor ({rabbit , Node }, Monitors )}
588588 end ,
589589 ok = handle_live_rabbit (Node ),
590590 Partitions1 = lists :usort ([Node | Partitions ]),
@@ -893,4 +893,4 @@ startup_log([]) ->
893893 rabbit_log :info (" Starting rabbit_node_monitor~n " , []);
894894startup_log (Nodes ) ->
895895 rabbit_log :info (" Starting rabbit_node_monitor, might be partitioned from ~p~n " ,
896- [Nodes ]).
896+ [Nodes ]).
0 commit comments