Skip to content

refactor: 调整命名与连接池,并修复改名后的导入 - #39

Merged
raychen911 merged 1 commit into
mainfrom
refactor/change_code
Nov 17, 2026
Merged

raychen911 merged 1 commit into
mainfrom
refactor/change_code

Conversation

@Rook1ex

@Rook1ex Rook1ex commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • 统一客户端、流式、魔数和名字服务的命名,重整连接池,并补上字段改名后断掉的导入。
  • 连接池改由 _client._pool 导出 KeepLiveConnPoolManager、KeepLiveConnPoolOptions、Connection、ClientStreamConn,ShortConnPool 自带构造函数。
  • client / codec、compressor / http、serialization 以及 tests、examples、docs 跟随新名称和模块路径。

@Rook1ex
Rook1ex force-pushed the refactor/change_code branch 5 times, most recently from a2f92ad to 62f6d26 Compare November 17, 2026 02:18
统一客户端、流式、魔数和名字服务的命名,重整连接池,并补上字段改名后断掉的导入。

- 格式化代码,修改客户端类名、流式名称和魔数名称,整合名字服务文件
- 连接池改由 _client._pool 导出 KeepLiveConnPoolManager、KeepLiveConnPoolOptions、Connection、ClientStreamConn,并修正 _tcp_round_trip 与 _keep_live_conn_pool 的导入
- ShortConnPool 自带构造函数,模块级实例不再要求 address/loop
- client / codec 改用 KeepLiveConnPoolOptions 和 Connection
- compressor / http 改用 CompressType.GZIP 和 SNAPPY
- serialization 去掉已删除的 JceSerializer 和 WupSerializer 导出
- tests、examples、docs 跟随新名称和模块路径
@Rook1ex
Rook1ex force-pushed the refactor/change_code branch from 62f6d26 to 0d4ac64 Compare November 17, 2026 02:25

@raychen911 raychen911 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@raychen911
raychen911 merged commit a02141f into main Nov 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants