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
|
||||
Travis::Database.connect
|
||||
if Travis.config.database_follower
|
||||
Travis::Model.establish_follower_connection(Travis.config.database_follower)
|
||||
end
|
||||
end
|
||||
|
||||
def self.load_endpoints
|
||||
|
|
|
@ -4,13 +4,7 @@ class Travis::Api::App
|
|||
module Helpers
|
||||
module DbFollower
|
||||
def prefer_follower
|
||||
if Travis.config.database_follower
|
||||
Travis::Model.using_follower do
|
||||
yield
|
||||
end
|
||||
else
|
||||
yield
|
||||
end
|
||||
yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user