Skip to content

Commit

Permalink
Fix typo: healty -> healthy
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Nov 28, 2019
1 parent 4eed081 commit a27f971
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/fluent/plugin/out_forward.rb
Original file line number Diff line number Diff line change
Expand Up @@ -406,16 +406,16 @@ def create_transfer_socket(host, port, hostname, &block)
def statistics
stats = super
services = discovery_manager.services
healty_nodes_count = 0
healthy_nodes_count = 0
registed_nodes_count = services.size
services.each do |s|
if s.available?
healty_nodes_count += 1
healthy_nodes_count += 1
end
end

stats.merge(
'healty_nodes_count' => healty_nodes_count,
'healthy_nodes_count' => healthy_nodes_count,
'registered_nodes_count' => registed_nodes_count,
)
end
Expand Down
2 changes: 1 addition & 1 deletion test/plugin/out_forward/test_load_balancer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class LoadBalancerTest < Test::Unit::TestCase
sub_test_case 'select_healthy_node' do
test 'select healty node' do
test 'select healthy node' do
lb = Fluent::Plugin::ForwardOutput::LoadBalancer.new($log)
n1 = flexmock('node', :'standby?' => false, :'available?' => false, weight: 1)
n2 = flexmock('node', :'standby?' => false, :'available?' => true, weight: 1)
Expand Down

0 comments on commit a27f971

Please sign in to comment.