mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
queue: Rename SimpleQueue to SimpleQueueClient
It doesn't represent a single queue; that's what the 'queue_name' arguments are for. (imported from commit 8382ae6793ca7c3ae4b5aacf2c128113a7a88fb6)
This commit is contained in:
@@ -3,14 +3,14 @@ from django.core.management.base import BaseCommand
|
||||
import simplejson
|
||||
import pika
|
||||
from zephyr.lib.actions import process_user_activity_event
|
||||
from zephyr.lib.queue import SimpleQueue
|
||||
from zephyr.lib.queue import SimpleQueueClient
|
||||
|
||||
class Command(BaseCommand):
|
||||
option_list = BaseCommand.option_list
|
||||
help = "Process UserActivity log messages."
|
||||
|
||||
def handle(self, *args, **options):
|
||||
activity_queue = SimpleQueue()
|
||||
activity_queue = SimpleQueueClient()
|
||||
|
||||
def callback(ch, method, properties, event):
|
||||
print " [x] Received %r" % (event,)
|
||||
|
||||
Reference in New Issue
Block a user