Skip to content

Commit

Permalink
Event engine as a default subscription manager
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Apr 15, 2024
1 parent 51f2a79 commit e0ec9e8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pubnub/pubnub_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
from pubnub.endpoints.presence.heartbeat import Heartbeat
from pubnub.endpoints.presence.leave import Leave
from pubnub.endpoints.pubsub.subscribe import Subscribe
from pubnub.features import feature_enabled
from pubnub.pubnub_core import PubNubCore
from pubnub.workers import SubscribeMessageWorker
from pubnub.managers import SubscriptionManager, PublishSequenceManager, ReconnectionManager, TelemetryManager
Expand Down Expand Up @@ -49,9 +48,7 @@ def __init__(self, config, custom_event_loop=None, subscription_manager=None):
self._connector = aiohttp.TCPConnector(verify_ssl=True, loop=self.event_loop)

if not subscription_manager:
subscription_manager = (
EventEngineSubscriptionManager if feature_enabled('PN_ENABLE_EVENT_ENGINE')
else AsyncioSubscriptionManager)
subscription_manager = EventEngineSubscriptionManager

if self.config.enable_subscribe:
self._subscription_manager = subscription_manager(self)
Expand Down

0 comments on commit e0ec9e8

Please sign in to comment.