satori-python-server 0.17.0__tar.gz → 0.17.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: satori-python-server
3
- Version: 0.17.0
3
+ Version: 0.17.1
4
4
  Summary: Satori Protocol SDK for python, specify server part
5
5
  Home-page: https://github.com/RF-Tar-Railt/satori-python
6
6
  Author-Email: RF-Tar-Railt <rf_tar_railt@qq.com>
@@ -27,7 +27,7 @@ classifiers = [
27
27
  "Programming Language :: Python :: 3.12",
28
28
  "Operating System :: OS Independent",
29
29
  ]
30
- version = "0.17.0"
30
+ version = "0.17.1"
31
31
 
32
32
  [project.license]
33
33
  text = "MIT"
@@ -264,7 +264,7 @@ class Server(Service, RouterMixin):
264
264
  {"op": Opcode.READY, "body": {"logins": [lo.dump() for lo in logins], "proxy_urls": proxy_urls}}
265
265
  )
266
266
  self.connections.append(connection)
267
- logger.debug(f"New connection: {id(connection)}")
267
+ logger.debug(f"New connection: {id(connection):x}")
268
268
  heartbeat_task = asyncio.create_task(connection.heartbeat())
269
269
  close_task = asyncio.create_task(connection.close_signal.wait())
270
270
  try:
@@ -281,7 +281,7 @@ class Server(Service, RouterMixin):
281
281
  await any_completed(heartbeat_task, close_task)
282
282
  finally:
283
283
  await connection.connection_closed()
284
- logger.debug(f"Connection closed: {id(connection)}")
284
+ logger.debug(f"Connection closed: {id(connection):x}")
285
285
  heartbeat_task.cancel()
286
286
  close_task.cancel()
287
287
  self.connections.remove(connection)
@@ -29,7 +29,7 @@ class WebsocketConnection:
29
29
  continue
30
30
  await self.connection.send_text(encode({"op": Opcode.PONG}))
31
31
  except asyncio.TimeoutError:
32
- logger.warning(f"Connection {id(self)} heartbeat timeout, closing connection.")
32
+ logger.warning(f"Connection {id(self):x} heartbeat timeout, closing connection.")
33
33
  await self.connection.close()
34
34
  await self.connection_closed()
35
35
  break