diff --git a/CHANGELOG.md b/CHANGELOG.md index 249b8201..69d525c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Next +* refactor(http): introduce `Config` as the facade for configuration [#423] * feat(http): create `Profile` abstraction [#421] +[#423]: https://github.com/rs-ipfs/rust-ipfs/pull/423 [#421]: https://github.com/rs-ipfs/rust-ipfs/pull/421 # 0.2.1 diff --git a/http/src/config.rs b/http/src/config.rs index 30d02eea..c29ba628 100644 --- a/http/src/config.rs +++ b/http/src/config.rs @@ -146,9 +146,9 @@ pub fn init( /// The facade for the configuration of the API. pub struct Config { - /// Keypair for the ipfs node + /// Keypair for the ipfs node. pub keypair: ipfs::Keypair, - /// Peer addresses for the ipfs node + /// Peer addresses for the ipfs node. pub swarm: Vec, /// Address to run the API daemon on. pub api_addr: Multiaddr, @@ -224,7 +224,7 @@ fn pem_to_der(bytes: &[u8]) -> Vec { use multibase::Base::Base64Pad; // Initially tried this with `pem` crate but it will give back bytes for the ascii, but we need - // the ascii for multibase',s base64pad decoding. + // the ascii for multibase's base64pad decoding. let mut base64_encoded = String::new(); let pem = std::str::from_utf8(&bytes).expect("PEM should be utf8"); diff --git a/http/src/main.rs b/http/src/main.rs index d43e1913..da8f6f19 100644 --- a/http/src/main.rs +++ b/http/src/main.rs @@ -73,7 +73,6 @@ fn main() { std::process::exit(1); } - // let result = config::initialize(&home, bits, profile); let result = config::init(&home, bits, profile); match result {