Skip to content

Pass adress and port independently to constructor. #109

@clangenb

Description

@clangenb

Change the Api::new(url: String) to Api::new(address: &str, port: &str). Practice shows that this is more convenient as all our CLI`s fetch the url and the port independently, which leads to boilerplate code outside the Api.

Note: &str suffices, as we will assemble the String internally with format!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions