Permalink
Browse files

#72 we dont need announce_to_typelist if "active_users_available" active

  • Loading branch information...
1 parent 1ad0623 commit 5b2f2ee85288cb235f6f1f8be2a347e603acbdc0 @yuanton committed May 5, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/fnordmetric/namespace.rb
@@ -21,9 +21,11 @@ def ready!(redis)
end
def announce(event)
- announce_to_timeline(event) if active_users_available
- announce_to_typelist(event)
-
+ if active_users_available
+ announce_to_timeline(event)
+ announce_to_typelist(event)
+ end
+
if event[:_session]
event[:_session_key] = announce_to_session(event).session_key
end

0 comments on commit 5b2f2ee

Please sign in to comment.