Skip to content
Snippets Groups Projects
Unverified Commit fed6773b authored by Jon Jenkins's avatar Jon Jenkins
Browse files

Merge branch 'refactor_interval_var_in_service_discovery' into 'master'

Rename local variable to avoid confusion from instance variable

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/130541



Merged-by: default avatarJon Jenkins <jjenkins@gitlab.com>
Approved-by: default avatarJon Jenkins <jjenkins@gitlab.com>
Co-authored-by: default avatarPrabakaran Murugesan <pmurugesan@gitlab.com>
parents 2e81c2f1 7203baea
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -118,7 +118,7 @@ def perform_service_discovery
# The return value is the amount of time (in seconds) to wait before
# checking the DNS record for any changes.
def refresh_if_necessary
interval, from_dns = addresses_from_dns
wait_time, from_dns = addresses_from_dns
 
current = addresses_from_load_balancer
 
Loading
Loading
@@ -132,7 +132,7 @@ def refresh_if_necessary
replace_hosts(from_dns)
end
 
interval
wait_time
end
 
# Replaces all the hosts in the load balancer with the new ones,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment