runtime: switch executor to adapter registry
This commit is contained in:
@@ -36,7 +36,7 @@ impl ProtocolAdapter for RestAdapter {
|
||||
query_params: prepared.query_params.clone(),
|
||||
headers: prepared.headers.clone(),
|
||||
body: prepared.body.clone(),
|
||||
timeout_ms: 30_000,
|
||||
timeout_ms: prepared.timeout_ms,
|
||||
};
|
||||
let response = self.execute(target, &request).await?;
|
||||
|
||||
@@ -63,7 +63,7 @@ impl ProtocolAdapter for RestAdapter {
|
||||
query_params: prepared.query_params.clone(),
|
||||
headers: prepared.headers.clone(),
|
||||
body: prepared.body.clone(),
|
||||
timeout_ms: 30_000,
|
||||
timeout_ms: prepared.timeout_ms,
|
||||
},
|
||||
window_duration_ms,
|
||||
max_items: max_items.map(|value| value.saturating_add(1)),
|
||||
|
||||
Reference in New Issue
Block a user