summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-07-13 00:17:32 +0200
committerGabriel Mazetto <gabriel@gitlab.com>2016-07-13 00:23:16 +0200
commitfd9214a898d7022edd47176d4432d014d37471e9 (patch)
treeaeeed256533965a3f2563c592b8baa5cc0f6cf24
parentc53f968c63747605a2ee6617a37a14d039832a87 (diff)
downloadgitlab-ce-fd9214a898d7022edd47176d4432d014d37471e9.tar.gz
Codestyle changes
-rw-r--r--config/resque.yml.example32
-rw-r--r--lib/gitlab/mail_room.rb1
2 files changed, 16 insertions, 17 deletions
diff --git a/config/resque.yml.example b/config/resque.yml.example
index 7b03132ff9e..20a1c07690f 100644
--- a/config/resque.yml.example
+++ b/config/resque.yml.example
@@ -3,13 +3,13 @@
#
development:
url: redis://localhost:6379
-# sentinels:
-# -
-# host: localhost
-# port: 26380 # point to sentinel, not to redis port
-# -
-# host: slave2
-# port: 26381 # point to sentinel, not to redis port
+ # sentinels:
+ # -
+ # host: localhost
+ # port: 26380 # point to sentinel, not to redis port
+ # -
+ # host: slave2
+ # port: 26381 # point to sentinel, not to redis port
test:
url: redis://localhost:6379
production:
@@ -18,17 +18,17 @@ production:
##
# Redis + Sentinel (for HA)
#
- # Please read instructions carefully before using it as you may loose data:
+ # Please read instructions carefully before using it as you may lose data:
# http://redis.io/topics/sentinel
#
# You must specify a list of a few sentinels that will handle client connection
# please read here for more information: https://github.com/redis/redis-rb#sentinel-support
##
- #url: redis://master:6379
- # sentinels:
- # -
- # host: slave1
- # port: 26379 # point to sentinel, not to redis port
- # -
- # host: slave2
- # port: 26379 # point to sentinel, not to redis port
+ # url: redis://master:6379
+ # sentinels:
+ # -
+ # host: slave1
+ # port: 26379 # point to sentinel, not to redis port
+ # -
+ # host: slave2
+ # port: 26379 # point to sentinel, not to redis port
diff --git a/lib/gitlab/mail_room.rb b/lib/gitlab/mail_room.rb
index b49cf1c633b..1f68e09fa2b 100644
--- a/lib/gitlab/mail_room.rb
+++ b/lib/gitlab/mail_room.rb
@@ -4,7 +4,6 @@ require_relative 'redis' unless defined?(Gitlab::Redis)
module Gitlab
module MailRoom
-
class << self
def enabled?
config[:enabled] && config[:address]