[pd-router] Add Configurable Retry Logic for reduce backend pressure (#8744)
This commit is contained in:
@@ -580,8 +580,17 @@ mod tests {
|
||||
use crate::routers::router::Router;
|
||||
|
||||
let policy = PolicyFactory::create_from_config(&PolicyConfig::Random);
|
||||
let router =
|
||||
Router::new(vec![], policy, reqwest::Client::new(), 5, 1, false, None).unwrap();
|
||||
let router = Router::new(
|
||||
vec![],
|
||||
policy,
|
||||
reqwest::Client::new(),
|
||||
5,
|
||||
1,
|
||||
false,
|
||||
None,
|
||||
crate::config::types::RetryConfig::default(),
|
||||
)
|
||||
.unwrap();
|
||||
Arc::new(router) as Arc<dyn RouterTrait>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user