Skip to content

Commit a79de51

Browse files
committed
Remove unused lb_algorithm method
1 parent 76b4538 commit a79de51

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

app/models/runtime/route.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -77,24 +77,6 @@ def as_summary_json
7777
}
7878
end
7979

80-
def lb_algorithm
81-
return {} if options.blank?
82-
83-
lb_algo = options.fetch('lb_algorithm', {})
84-
puts "options: #{options}"
85-
puts "lb_algo: #{lb_algo}"
86-
case lb_algo
87-
when LBAlgorithmEnum::ROUND_ROBIN
88-
LBAlgorithmEnum::ROUND_ROBIN
89-
when LBAlgorithmEnum::LEAST_CONNECTION
90-
LBAlgorithmEnum::LEAST_CONNECTION
91-
else
92-
{}
93-
end
94-
95-
end
96-
97-
9880
def options_with_serialization=(opts)
9981
self.options_without_serialization = Oj.dump(opts)
10082
end

0 commit comments

Comments
 (0)