Skip to content

Commit

Permalink
compilation fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
kamirr committed Sep 1, 2023
1 parent 58c7a1c commit 874945e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions core/gsb-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ lazy_static = "1"
thiserror = "1"
uuid = { version = "1.2.2", features = ["v4"] }
futures = "0.3"
base64 = "0"
base64 = "0.21.3"
flexbuffers = "2"
bytes = "1"
tokio = { version = "1", features=["macros"] }
tokio = { version = "1", features = ["macros"] }

[dev-dependencies]
ya-core-model = { version = "^0.9", features = ["gftp"] }
Expand Down
2 changes: 1 addition & 1 deletion core/market/tests/test_rest_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ async fn test_rest_query_agreement_events() {
let app = network.get_rest_app("Node-1").await;
let url = format!(
"/market-api/v1/agreementEvents?{}",
QueryParamsBuilder::new()
QueryParamsBuilder::default()
.put("afterTimestamp", Some(after_timestamp))
.put("appSessionId", Some("r-session"))
.put("maxEvents", Some(10))
Expand Down
2 changes: 1 addition & 1 deletion core/payment/src/api/allocations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ fn amend_allocation_fields(
.unwrap_or_else(|| old_allocation.total_amount.clone());
let remaining_amount = total_amount.clone() - &old_allocation.spent_amount;

if remaining_amount < 0 {
if remaining_amount < BigDecimal::from(0) {
return Err("New allocation would be smaller than the already spent amount");
}
if let Some(timeout) = update.timeout {
Expand Down

0 comments on commit 874945e

Please sign in to comment.