[router] refactor router and worker management 2.5/n (#10677)

This commit is contained in:
Simo Lin
2025-09-19 23:54:40 -04:00
committed by GitHub
parent 60e2a7cead
commit 1d1ce62495
8 changed files with 235 additions and 123 deletions

View File

@@ -49,7 +49,7 @@ impl TestContext {
// Initialize workers in the registry before creating router
if !worker_urls.is_empty() {
use sglang_router_rs::routers::WorkerInitializer;
WorkerInitializer::initialize_workers(&config, &app_context.worker_registry)
WorkerInitializer::initialize_workers(&config, &app_context.worker_registry, None)
.await
.expect("Failed to initialize workers");
}