lib/cztop/patterns/bstar.rb
def frontend_ready
    fsm(Events::CLIENT_REQUEST) # could initiate failover
    process_requests
  rescue NotActive
    # not taking over yet
    @on_vote.call if @on_vote
    discard_votes
  end
# Called when frontend socket seems ready.
# @return [void]
Called when frontend socket seems ready.
Called when frontend socket seems ready .
def frontend_ready
    fsm(Events::CLIENT_REQUEST) 
    process_requests
  rescue NotActive
    @on_vote.call if @on_vote
    discard_votes
  end
def frontend_ready fsm ( Events :: CLIENT_REQUEST ) process_requests rescue NotActive @on_vote . call if @on_vote discard_votes end
Called when frontend socket seems ready.
Called when frontend socket seems ready .
# could initiate failover # not taking over yet
None
void