diff --git a/pagermaid/modules/mixpanel.py b/pagermaid/modules/mixpanel.py index 25fa9be..08d2b25 100644 --- a/pagermaid/modules/mixpanel.py +++ b/pagermaid/modules/mixpanel.py @@ -3,9 +3,9 @@ from pagermaid.enums import Client, Message from pagermaid.hook import Hook from mixpanel import Mixpanel +from mixpanel_async import AsyncBufferedConsumer - -mp = Mixpanel(Config.MIXPANEL_API) +mp = Mixpanel(Config.MIXPANEL_API, consumer=AsyncBufferedConsumer()) @Hook.on_startup() diff --git a/requirements.txt b/requirements.txt index 852e3fb..2b8d3a7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,4 +10,5 @@ apscheduler sqlitedict casbin==1.16.11 mixpanel +mixpanel-py-async sentry-sdk==1.9.0