|
|
@@ -125,13 +125,13 @@ module Agents
|
125
|
125
|
end
|
126
|
126
|
|
127
|
127
|
def self.setup_worker
|
128
|
|
- if Agents::TwitterStreamAgent.dependencies_missing?
|
129
|
|
- STDERR.puts Agents::TwitterStreamAgent.twitter_dependencies_missing
|
130
|
|
- STDERR.flush
|
131
|
|
- return false
|
132
|
|
- end
|
133
|
|
-
|
134
|
128
|
Agents::TwitterStreamAgent.active.group_by { |agent| agent.twitter_oauth_token }.map do |oauth_token, agents|
|
|
129
|
+ if Agents::TwitterStreamAgent.dependencies_missing?
|
|
130
|
+ STDERR.puts Agents::TwitterStreamAgent.twitter_dependencies_missing
|
|
131
|
+ STDERR.flush
|
|
132
|
+ return false
|
|
133
|
+ end
|
|
134
|
+
|
135
|
135
|
filter_to_agent_map = agents.map { |agent| agent.options[:filters] }.flatten.uniq.compact.map(&:strip).inject({}) { |m, f| m[f] = []; m }
|
136
|
136
|
|
137
|
137
|
agents.each do |agent|
|