modify: 统一插件风格
This commit is contained in:
+2
-1
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user