This commit is contained in:
2026-09-18 18:21:01 +08:00
parent e728dcd226
commit c51e6b793a
10 changed files with 71 additions and 53 deletions
+9
View File
@@ -36,6 +36,15 @@ async def init_rustfs_storage():
return False
async def rustfs_startup_hook():
"""app_factory startup_hooks 注入点(D3 收敛):moldinsight/unified 入口把
本钩子传入 create_app(startup_hooks=[rustfs_startup_hook]),RustFS 连接接线
归属 moldinsight 层,平台工厂不再持有模块专属依赖(原 connect_rustfs 已移除)。
"""
ok = await init_rustfs_storage()
print(f"[{'OK' if ok else 'WARN'}] RustFS")
async def test_storage():
"""测试 RustFS 对象存储功能"""
try: