Disable follower for now
This commit is contained in:
parent
783d197e7e
commit
a49265f872
|
@ -157,9 +157,6 @@ module Travis::Api
|
||||||
|
|
||||||
def self.setup_database_connections
|
def self.setup_database_connections
|
||||||
Travis::Database.connect
|
Travis::Database.connect
|
||||||
if Travis.config.database_follower
|
|
||||||
Travis::Model.establish_follower_connection(Travis.config.database_follower)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.load_endpoints
|
def self.load_endpoints
|
||||||
|
|
|
@ -4,13 +4,7 @@ class Travis::Api::App
|
||||||
module Helpers
|
module Helpers
|
||||||
module DbFollower
|
module DbFollower
|
||||||
def prefer_follower
|
def prefer_follower
|
||||||
if Travis.config.database_follower
|
yield
|
||||||
Travis::Model.using_follower do
|
|
||||||
yield
|
|
||||||
end
|
|
||||||
else
|
|
||||||
yield
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user