Skip to content

Commit

Permalink
Use correct MAX_BLOB_PIECE_LENGTH from p2panda_rs
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Sep 6, 2023
1 parent c055fbe commit 7cbf5f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion 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 aquadoggo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ lipmaa-link = "0.2.2"
log = "0.4.19"
once_cell = "1.18.0"
openssl-probe = "0.1.5"
p2panda-rs = { git = "https://github.com/p2panda/p2panda", rev = "17f4fcb1dcf7cebabd6d9b5a824399e9384d96b2", features = [
p2panda-rs = { git = "https://github.com/p2panda/p2panda", rev = "8377056617b64e898e9980e8ad84d258ca0442a1", features = [
"storage-provider",
] }
rand = "0.8.5"
Expand Down Expand Up @@ -97,7 +97,7 @@ http = "0.2.9"
hyper = "0.14.19"
libp2p-swarm-test = "0.2.0"
once_cell = "1.17.0"
p2panda-rs = { git = "https://github.com/p2panda/p2panda", rev = "17f4fcb1dcf7cebabd6d9b5a824399e9384d96b2", features = [
p2panda-rs = { git = "https://github.com/p2panda/p2panda", rev = "8377056617b64e898e9980e8ad84d258ca0442a1", features = [
"test-utils",
"storage-provider",
] }
Expand Down
4 changes: 1 addition & 3 deletions aquadoggo/src/http/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,14 @@ mod tests {
use http::{header, StatusCode};
use p2panda_rs::document::DocumentId;
use p2panda_rs::identity::KeyPair;
use p2panda_rs::schema::validate::MAX_BLOB_PIECE_LENGTH;
use p2panda_rs::test_utils::fixtures::key_pair;
use rstest::rstest;

use crate::materializer::tasks::blob_task;
use crate::materializer::TaskInput;
use crate::test_utils::{add_blob, http_test_client, test_runner, update_blob, TestNode};

// @TODO: Would be nice if this would come out of p2panda_rs
const MAX_BLOB_PIECE_LENGTH: usize = 256;

#[rstest]
fn responds_with_blob_in_http_body(key_pair: KeyPair) {
test_runner(|mut node: TestNode| async move {
Expand Down
2 changes: 1 addition & 1 deletion aquadoggo_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ libp2p = "0.52.0"
log = "0.4.20"
path-clean = "1.0.1"
serde = { version = "1.0.185", features = ["serde_derive"] }
p2panda-rs = { git = "https://github.com/p2panda/p2panda", rev = "17f4fcb1dcf7cebabd6d9b5a824399e9384d96b2" }
p2panda-rs = { git = "https://github.com/p2panda/p2panda", rev = "8377056617b64e898e9980e8ad84d258ca0442a1" }
tokio = { version = "1.28.2", features = ["full"] }
toml = "0.7.6"

Expand Down

0 comments on commit 7cbf5f5

Please sign in to comment.