chore: extra post-review comment and a panic message grammatical fix

Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-09-01 17:31:02 +02:00
parent 11dba5a44e
commit 77237a5559
2 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ impl IpfsOptions {
keypair: Keypair::generate_ed25519(),
mdns: Default::default(),
bootstrap: Default::default(),
// default to lan kad for go-ipfs use in tests
kad_protocol: Some("/ipfs/lan/kad/1.0.0".to_owned()),
}
}

View File

@ -129,7 +129,7 @@ fn start_go_node() -> GoIpfsNode {
// GO_IPFS_PATH should point to the location of the go-ipfs binary
let go_ipfs_path = env::vars()
.find(|(key, _val)| key == "GO_IPFS_PATH")
.expect("the GO_IPFS_PATH environment variable not found")
.expect("the GO_IPFS_PATH environment variable was not found")
.1;
let mut tmp_dir = env::temp_dir();