-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(test): get data with churn test running #2219
Conversation
RolandSherwin
commented
Oct 9, 2024
- get the churn test running (currently fails when running locally though)
- also add more logging to evmlib and autonomi to debug failure
f44918e
to
52ed976
Compare
autonomi/src/client/data.rs
Outdated
@@ -165,8 +178,12 @@ impl Client { | |||
pub async fn put(&self, data: Bytes, wallet: &Wallet) -> Result<XorName, PutError> { | |||
let now = sn_networking::target_arch::Instant::now(); | |||
let (data_map_chunk, chunks) = encrypt(data)?; | |||
info!( | |||
"Uploading chunk to the network at: {:?}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change to Uploading datamap chunk {:?} to the network
?
autonomi/src/client/data.rs
Outdated
self.upload_chunk(chunk, proof.clone()).await?; | ||
self.upload_chunk(chunk, proof.clone()) | ||
.await | ||
.inspect_err(|err| error!("Error uploading chunk: {err:?}"))?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better log the chunk addr and index as well?
autonomi/src/client/data.rs
Outdated
tracing::debug!("Encryption took: {:.2?}", now.elapsed()); | ||
debug!("Encryption took: {:.2?}", now.elapsed()); | ||
info!( | ||
"Calculating cost for chunk to the network at: {:?}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for data to
52ed976
to
118fca8
Compare