Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit 06df19b

Browse files
committed
refactor(http): small fixes
1 parent 9768f04 commit 06df19b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

http/src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ pub fn init(
146146

147147
/// The facade for the configuration of the API.
148148
pub struct Config {
149-
/// Keypair for the ipfs node
149+
/// Keypair for the ipfs node.
150150
pub keypair: ipfs::Keypair,
151-
/// Peer addresses for the ipfs node
151+
/// Peer addresses for the ipfs node.
152152
pub swarm: Vec<Multiaddr>,
153153
/// Address to run the API daemon on.
154154
pub api_addr: Multiaddr,
@@ -224,7 +224,7 @@ fn pem_to_der(bytes: &[u8]) -> Vec<u8> {
224224
use multibase::Base::Base64Pad;
225225

226226
// Initially tried this with `pem` crate but it will give back bytes for the ascii, but we need
227-
// the ascii for multibase',s base64pad decoding.
227+
// the ascii for multibase's base64pad decoding.
228228
let mut base64_encoded = String::new();
229229

230230
let pem = std::str::from_utf8(&bytes).expect("PEM should be utf8");

http/src/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ fn main() {
7373
std::process::exit(1);
7474
}
7575

76-
// let result = config::initialize(&home, bits, profile);
7776
let result = config::init(&home, bits, profile);
7877

7978
match result {

0 commit comments

Comments
 (0)