Skip to content

Commit

Permalink
fix: Agent::with_background_dynamic_routing is async
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 committed Feb 3, 2025
1 parent 9ebf631 commit 8dd6511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased

* Updated the serialization of `WasmMemoryPersistence`.
* `Agent::with_background_dynamic_routing` is no longer `async`.

## [0.39.3] - 2025-01-21

Expand Down
2 changes: 1 addition & 1 deletion ic-agent/src/agent/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl AgentBuilder {
/// and routing traffic via them based on latency. Cannot be set together with `with_route_provider`.
///
/// See [`DynamicRouteProvider`](super::route_provider::DynamicRouteProvider) if more customization is needed such as polling intervals.
pub async fn with_background_dynamic_routing(mut self) -> Self {
pub fn with_background_dynamic_routing(mut self) -> Self {
assert!(
self.config.route_provider.is_none(),
"with_background_dynamic_routing cannot be called with with_route_provider"
Expand Down

0 comments on commit 8dd6511

Please sign in to comment.