Skip to content

Commit

Permalink
Default whether to notify based on QC::LISTENING_WORKER.
Browse files Browse the repository at this point in the history
  • Loading branch information
danp committed Aug 1, 2012
1 parent f9e8499 commit ad504dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/queue_classic.rb
Expand Up @@ -66,7 +66,7 @@ def self.method_missing(sym, *args, &block)

def self.default_queue
@default_queue ||= begin
Queue.new(QUEUE, LISTENING_WORKER)
Queue.new(QUEUE)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/queue_classic/queue.rb
Expand Up @@ -3,7 +3,7 @@ class Queue

attr_reader :name, :chan

def initialize(name, notify=false)
def initialize(name, notify=QC::LISTENING_WORKER)
@name = name
@chan = @name if notify
end
Expand Down

1 comment on commit ad504dd

@joevandyk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to not always notify? Or to put the NOTIFY inside a db trigger?

Please sign in to comment.