Skip to content

Commit

Permalink
fix apns_protocol_factory being wrapped in tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
pomali authored Jul 2, 2024
1 parent 47d6efe commit 976b514
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions aioapns/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -557,14 +557,12 @@ async def create_connection(self) -> APNsBaseClientProtocol:
auth_provider = JWTAuthorizationHeaderProvider(
key=self.key, key_id=self.key_id, team_id=self.team_id
)
apns_protocol_factory = (
partial(
self.protocol_class,
self.apns_topic,
self.loop,
self.discard_connection,
auth_provider,
),
apns_protocol_factory = partial(
self.protocol_class,
self.apns_topic,
self.loop,
self.discard_connection,
auth_provider,
)

if self.proxy_host and self.proxy_port:
Expand Down

0 comments on commit 976b514

Please sign in to comment.