refactor(core): remove get_by_model_fast alias in worker_registry (#16313)
This commit is contained in:
@@ -35,7 +35,7 @@ impl StepExecutor for UpdatePoliciesForWorkerStep {
|
||||
);
|
||||
|
||||
for model_id in &affected_models {
|
||||
let workers = app_context.worker_registry.get_by_model_fast(model_id);
|
||||
let workers = app_context.worker_registry.get_by_model(model_id);
|
||||
|
||||
if let Some(policy) = app_context.policy_registry.get_policy(model_id) {
|
||||
if policy.name() == "cache_aware" && !workers.is_empty() {
|
||||
|
||||
@@ -29,7 +29,7 @@ impl StepExecutor for UpdateRemainingPoliciesStep {
|
||||
);
|
||||
|
||||
for model_id in affected_models.iter() {
|
||||
let remaining_workers = app_context.worker_registry.get_by_model_fast(model_id);
|
||||
let remaining_workers = app_context.worker_registry.get_by_model(model_id);
|
||||
|
||||
if let Some(policy) = app_context.policy_registry.get_policy(model_id) {
|
||||
if policy.name() == "cache_aware" && !remaining_workers.is_empty() {
|
||||
|
||||
@@ -38,7 +38,7 @@ impl StepExecutor for UpdatePoliciesStep {
|
||||
.on_worker_added(&model_id, policy_hint);
|
||||
|
||||
// Initialize cache-aware policy if configured
|
||||
let all_workers = app_context.worker_registry.get_by_model_fast(&model_id);
|
||||
let all_workers = app_context.worker_registry.get_by_model(&model_id);
|
||||
if let Some(policy) = app_context.policy_registry.get_policy(&model_id) {
|
||||
if policy.name() == "cache_aware" {
|
||||
app_context
|
||||
|
||||
Reference in New Issue
Block a user