doc: add changelog entry for #423

This commit is contained in:
Niklas Long 2020-10-30 10:56:26 +01:00
parent 9768f04f21
commit 57226e16c1
3 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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<Multiaddr>,
/// Address to run the API daemon on.
pub api_addr: Multiaddr,
@ -224,7 +224,7 @@ fn pem_to_der(bytes: &[u8]) -> Vec<u8> {
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");

View File

@ -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 {