anchor.diff:  handle_call(_Request, _From, State) ->
       {reply, ok, State}.
   
  -handle_cast(reset_auto_failover_count, #state{count=0}=State) ->
  +handle_cast(reset_auto_failover_count, #state{count = 0} = State) ->
       {noreply, State};
   handle_cast(reset_auto_failover_count, State) ->
       ?log_debug("reset auto_failover count: ~p", [State]),
  -    State2 = State#state{count=0,
  +    State2 = State#state{count = 0,
                            auto_failover_logic_state = init_logic_state(State#state.timeout)},
       State3 = init_reported(State2),
       make_state_persistent(State3),
  
positive.code:     ?log_debug("init auto_failover.", []),
      Timeout = proplists:get_value(timeout, Config),
      Count = proplists:get_value(count, Config),
      State0 = #state{timeout=Timeout,
                      count=Count,
                      auto_failover_logic_state = undefined},
      State1 = init_reported(State0),
      case proplists:get_value(enabled, Config) of
  
negative.code: handle_call(disable_auto_failover, From, State) ->
      handle_call({disable_auto_failover, []}, From, State);
  %% @doc Auto-failover is already disabled, so we don't do anything
  handle_call({disable_auto_failover, _}, _From,
              #state{tick_ref = nil} = State) ->
      {reply, ok, State};
  %% @doc Auto-failover is enabled, disable it
  handle_call({disable_auto_failover, Extras}, _From,
              #state{tick_ref = Ref} = State) ->
      ?log_debug("disable_auto_failover: ~p", [State]),
      {ok, cancel} = timer2:cancel(Ref),
      State2 = State#state{tick_ref = nil, auto_failover_logic_state = undefined},
      make_state_persistent(State2, Extras),
      ale:info(?USER_LOGGER, "Disabled auto-failover"),
      {reply, ok, State2};
  