Skip to content

Commit 3471e9f

Browse files
authored
Merge pull request #38 from wj-Mcat/master
add authority for grpc channel
2 parents 84a4e14 + 665c5c0 commit 3471e9f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.16
1+
0.3.1

src/wechaty_puppet_hostie/puppet.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import re
2525
from typing import Optional, List
2626
from dataclasses import asdict
27-
import xml.dom.minidom
27+
import xml.dom.minidom # type: ignore
2828
import requests
2929

3030
from chatie_grpc.wechaty import ( # type: ignore
@@ -867,6 +867,10 @@ def _init_puppet(self):
867867

868868
host, port = self.options.end_point.split(':')
869869
self.channel = Channel(host=host, port=port)
870+
871+
# pylint: disable=W0212
872+
self.channel._authority = self.options.token
873+
870874
self._puppet_stub = PuppetStub(self.channel)
871875

872876
async def start(self) -> None:

0 commit comments

Comments
 (0)