Skip to content

Commit 0034bb0

Browse files
authored
Pass encryp key to NotificationClient, fix #132
- It passes the encryption_master_key to the NotificationClient that uses that to initialise the super class. - It fixes #132
1 parent f607076 commit 0034bb0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pusher/notification_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
class NotificationClient(Client):
2121
def __init__(
2222
self, app_id, key, secret, ssl=True, host=None, port=None,
23-
timeout=30, cluster=None, json_encoder=None, json_decoder=None,
23+
timeout=30, cluster=None, encryption_master_key=None, json_encoder=None, json_decoder=None,
2424
backend=None, **backend_options):
2525
super(NotificationClient, self).__init__(
26-
app_id, key, secret, ssl, host, port, timeout, cluster,
26+
app_id, key, secret, ssl, host, port, timeout, cluster, encryption_master_key,
2727
json_encoder, json_decoder, backend, **backend_options)
2828

2929
if host:

pusher/pusher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858

5959
self._notification_client = NotificationClient(
6060
app_id, key, secret, notification_ssl, notification_host, port,
61-
timeout, cluster, json_encoder, json_decoder, backend,
61+
timeout, cluster, encryption_master_key, json_encoder, json_decoder, backend,
6262
**backend_options)
6363

6464

0 commit comments

Comments
 (0)