Skip to content

Commit

Permalink
Added sync call feature
Browse files Browse the repository at this point in the history
  • Loading branch information
DSharifi committed Jul 22, 2024
1 parent 5dac658 commit 20d2fda
Show file tree
Hide file tree
Showing 18 changed files with 615 additions and 232 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ic-ref.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Install dfx
uses: dfinity/setup-dfx@main
with:
dfx-version: "latest"
dfx-version: "0.22.0-beta.0"

- name: Cargo cache
uses: actions/cache@v4
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Changed `ic_utils::interfaces::management_canister::builders::InstallMode::Upgrade` variant to be `Option<CanisterUpgradeOptions>`:
* `CanisterUpgradeOptions` is a new struct which covers the new upgrade option: `wasm_memory_persistence: Option<WasmMemoryPersistence>`.
* `WasmMemoryPersistence` is a new enum which controls Wasm main memory retention on upgrades which has two variants: `Keep` and `Replace`.
* Added an experimental feature, `experimental_sync_call`, to enable synchronous update calls. The feature adds a toggle to the `ReqwestTransport` and `HyperTransport` to enable synchronous update calls.

## [0.36.0] - 2024-06-04

Expand Down
167 changes: 162 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ic-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ web-sys = { version = "0.3", features = [

[features]
default = ["pem", "reqwest"]
experimental_sync_call = []
reqwest = ["dep:reqwest"]
hyper = [
"dep:hyper",
Expand Down
4 changes: 4 additions & 0 deletions ic-agent/src/agent/agent_error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,10 @@ pub enum AgentError {
/// Route provider failed to generate a url for some reason.
#[error("Route provider failed to generate url: {0}")]
RouteProviderError(String),

/// Invalid HTTP response.
#[error("Invalid HTTP response: {0}")]
InvalidHttpResponse(String),
}

impl PartialEq for AgentError {
Expand Down
Loading

0 comments on commit 20d2fda

Please sign in to comment.