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

feat(http): create Profile abstraction to allow port choice #421

Merged
merged 9 commits into from
Oct 27, 2020

Conversation

niklaslong
Copy link
Member

@niklaslong niklaslong commented Oct 22, 2020

This PR introduces a Profile abstraction to allow the customisation of port selection as discussed in #402.

Two profiles are supported:

  • Test for use with conformance tests (ephemeral port selection)
  • Default serves on 4004

@niklaslong niklaslong changed the title [WIP] fix(http): create Profile abstraction to allow port choice fix(http): create Profile abstraction to allow port choice Oct 23, 2020
http/src/config.rs Outdated Show resolved Hide resolved
http/src/config.rs Show resolved Hide resolved
http/src/config.rs Outdated Show resolved Hide resolved
http/src/config.rs Outdated Show resolved Hide resolved
http/src/config.rs Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@niklaslong niklaslong changed the title fix(http): create Profile abstraction to allow port choice feat(http): create Profile abstraction to allow port choice Oct 26, 2020
@niklaslong niklaslong marked this pull request as ready for review October 26, 2020 13:42
Copy link
Collaborator

@koivunej koivunej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still a few minor issues, otherwise this is looking very much ready to go.

http/src/main.rs Outdated Show resolved Hide resolved
http/src/main.rs Outdated Show resolved Hide resolved
http/src/main.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@koivunej koivunej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good

bors r+

@bors
Copy link
Contributor

bors bot commented Oct 27, 2020

Build succeeded:

@bors bors bot merged commit 83e73ab into rs-ipfs:master Oct 27, 2020
@niklaslong niklaslong deleted the 402-port branch October 27, 2020 14:27
bors bot added a commit that referenced this pull request Oct 30, 2020
423: http: configuration refactor r=niklaslong a=niklaslong

This is a wip but opening as a draft to keep track of this follow up to #421. This is also part of #402. 

This introduces the `Config` struct to serve as a facade to the configuration module. It's essentially a flattened `CompatibleConfigFile` struct exposing only the fields necessary to running the daemon.  


Co-authored-by: Niklas Long <niklas@equilibrium.co>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants