FIX: Remove unused code.

This commit is contained in:
Guo Xiang Tan 2016-11-30 16:39:31 +08:00
parent f794c25f60
commit 1e7de826dc

View File

@ -39,10 +39,6 @@ class PostgreSQLFallbackHandler
synchronize { @masters_down.delete(namespace) }
end
def running?
synchronize { @thread.alive? }
end
def initiate_fallback_to_master
@masters_down.keys.each do |key|
RailsMultisite::ConnectionManagement.with_connection(key) do
@ -59,7 +55,6 @@ class PostgreSQLFallbackHandler
Discourse.disable_readonly_mode
end
rescue => e
byebug
logger.warn "#{log_prefix}: Connection to master PostgreSQL server failed with '#{e.message}'"
end
end