mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +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:
|
||||
log.info(f"Identifying to {self.master_uri}...")
|
||||
await self.websocket.send(f"Identify {self.nid}:{self.link_type}:{self.secret}")
|
||||
response_package = await self.receive()
|
||||
response = response_package.data
|
||||
if isinstance(response, ServerErrorMessage):
|
||||
raise NetworkError(response, "Server returned error while identifying self")
|
||||
response_package: dict = await self.receive()
|
||||
self.identify_event.set()
|
||||
log.info(f"Identified successfully!")
|
||||
|
||||
|
|
Loading…
Reference in a new issue