You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Change the
Api::new(url: String)
toApi::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 theString
internally withformat!
The text was updated successfully, but these errors were encountered: