lib/bolt/executor.rb in bolt-3.4.0 vs lib/bolt/executor.rb in bolt-3.5.0
- old
+ new
@@ -215,11 +215,11 @@
end
results
end
- def report_transport(transport, count)
+ private def report_transport(transport, count)
name = transport.class.name.split('::').last.downcase
unless @reported_transports.include?(name)
@analytics&.event('Transport', 'initialize', label: name, value: count)
end
@reported_transports.add(name)
@@ -473,10 +473,10 @@
# Used to simplify unit testing, to avoid having to mock other calls to Time.now.
private def wait_now
Time.now
end
- def wait_until(timeout, retry_interval)
+ private def wait_until(timeout, retry_interval)
start = wait_now
until yield
raise(TimeoutError, 'Timed out waiting for target') if (wait_now - start).to_i >= timeout
sleep(retry_interval)
end