MessageBus handles readonly redis now, no need to wrap it

This commit is contained in:
Sam
2015-05-04 12:21:00 +10:00
parent 1c7fa956dc
commit 803feefd54
29 changed files with 111 additions and 140 deletions

View File

@ -62,7 +62,7 @@ module BackupRestore
def self.logs
id = start_logs_message_id
DiscourseBus.backlog(LOGS_CHANNEL, id).map { |m| m.data }
MessageBus.backlog(LOGS_CHANNEL, id).map { |m| m.data }
end
def self.current_version
@ -142,7 +142,7 @@ module BackupRestore
end
def self.save_start_logs_message_id
id = DiscourseBus.last_id(LOGS_CHANNEL)
id = MessageBus.last_id(LOGS_CHANNEL)
$redis.set(start_logs_message_id_key, id)
end