analytics: fix misspelled class name

This commit is contained in:
Jimmy Zelinskie 2015-03-06 12:02:13 -05:00
parent 12b458780b
commit 47675b88f5

View file

@ -9,12 +9,12 @@ from mixpanel import BufferedConsumer, Mixpanel
logger = logging.getLogger(__name__)
class MixpanelQueingConsumer(object):
class MixpanelQueuingConsumer(object):
def __init__(self, request_queue):
self._mp_queue = request_queue
def send(self, endpoint, json_message):
logger.debug('Queing mixpanel request.')
logger.debug('Queuing mixpanel request.')
self._mp_queue.put(json.dumps([endpoint, json_message]))
@ -59,7 +59,7 @@ class Analytics(object):
app.config['MIXPANEL_KEY'])
request_queue = Queue()
analytics = Mixpanel(mixpanel_key, MixpanelQueingConsumer(request_queue))
analytics = Mixpanel(mixpanel_key, MixpanelQueuingConsumer(request_queue))
SendToMixpanel(request_queue).start()
else: