doc: suggestions from code review

Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
This commit is contained in:
Joonas Koivunen 2020-09-22 16:28:17 +03:00 committed by GitHub
parent 23cc1bf288
commit ae646201c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,9 +36,9 @@ async fn main() {
}
};
// Start daemon and initialize repo.
// Initialize the repo and start a daemon.
//
// Here we are using the IpfsOptions::inmemory_with_generated_keys which creates a new random
// Here we are using the IpfsOptions::inmemory_with_generated_keys, which creates a new random
// key and in-memory storage for blocks and pins.
let mut opts = IpfsOptions::inmemory_with_generated_keys();
@ -54,7 +54,7 @@ async fn main() {
.await
.unwrap();
// The background task must be spawned to use anything other than the repository most notably,
// The background task must be spawned to use anything other than the repository; most notably,
// the libp2p.
tokio::task::spawn(fut);