mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
Stop working on this branch
This commit is contained in:
parent
daf63b9a61
commit
df3d5728d3
1 changed files with 1 additions and 4 deletions
|
@ -108,10 +108,7 @@ class RoyalnetLink:
|
||||||
async def identify(self) -> None:
|
async def identify(self) -> None:
|
||||||
log.info(f"Identifying to {self.master_uri}...")
|
log.info(f"Identifying to {self.master_uri}...")
|
||||||
await self.websocket.send(f"Identify {self.nid}:{self.link_type}:{self.secret}")
|
await self.websocket.send(f"Identify {self.nid}:{self.link_type}:{self.secret}")
|
||||||
response_package = await self.receive()
|
response_package: dict = await self.receive()
|
||||||
response = response_package.data
|
|
||||||
if isinstance(response, ServerErrorMessage):
|
|
||||||
raise NetworkError(response, "Server returned error while identifying self")
|
|
||||||
self.identify_event.set()
|
self.identify_event.set()
|
||||||
log.info(f"Identified successfully!")
|
log.info(f"Identified successfully!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue