modify: 统一插件风格

This commit is contained in:
2026-08-14 16:03:49 +08:00
parent fe95a67e93
commit f2a3a37389
14 changed files with 306 additions and 53 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ def fake_create_workers(session, config, count=1, worker_manager=None):
async def main():
auth_plugin._create_workers = fake_create_workers
# 替换 Plugin 基类的 worker 创建实现,避免依赖 zenoh 会话
auth_plugin.plugin._create_workers_impl = fake_create_workers
with tempfile.TemporaryDirectory() as tmp:
config = {"type": "auth", "data_dir": tmp}