-
Notifications
You must be signed in to change notification settings - Fork 165
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
feat: Show more numbers in human readable form #790
Conversation
This shows sizes in KiB, MiB etc. Also adds a few totals and transfer summaries.
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.
so human
src/main.rs
Outdated
@@ -315,11 +315,20 @@ async fn provide_interactive( | |||
|
|||
let (db, hash) = provider::create_collection(sources).await?; | |||
|
|||
println!("Collection: {}\n", Blake3Cid::new(hash)); | |||
out_writer |
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.
are you sure we want to push all this to stderr? seems to me that this is stdout content for the provider
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.
Ugh, good catch. I'm not sure at all. I guess this is "data" and not progress information so should go to stdout? But like the peer ID, auth token and ticket are also written using to OutWriter, and this seems to fall in that category to me and why I changed this. Are they wrong too?
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.
I think they are wrong too, yes
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.
Ok, updated them all to direct println! calls. PTAL
This shows sizes in KiB, MiB etc. Also adds a few totals and transfer
summaries.