Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(client): Fix torii url with path #4903

Merged
merged 2 commits into from
Jul 29, 2024

Conversation

dima74
Copy link
Contributor

@dima74 dima74 commented Jul 26, 2024

Description

Consider client.toml:

torii_url = "http://iroha-test.com/peer-1/"

Currently /peer-1/ part will be ignored and queries will be send to http://iroha-test.com/query. This PR fixes it

Benefits

Fix using torii_url with path in client.toml

Checklist

  • I've read CONTRIBUTING.md
  • I've used the standard signed-off commit format (or will squash just before merging)
  • All applicable CI checks pass (or I promised to make them pass later)
  • (optional) I've written unit tests for the code changes
  • I replied to all comments after code review, marking all implemented changes with thumbs up

0x009922
0x009922 previously approved these changes Jul 29, 2024
Copy link
Contributor

@0x009922 0x009922 left a comment

Choose a reason for hiding this comment

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

Would be also nice to add simple unit tests covering join_torii_url and user config transformations.

@0x009922 0x009922 self-assigned this Jul 29, 2024
nxsaken
nxsaken previously approved these changes Jul 29, 2024
DCNick3
DCNick3 previously approved these changes Jul 29, 2024
client/src/client.rs Show resolved Hide resolved
dima74 added 2 commits July 29, 2024 13:53
Signed-off-by: Dmitry Murzin <[email protected]>
@dima74 dima74 dismissed stale reviews from DCNick3, nxsaken, and 0x009922 via e2ba1fd July 29, 2024 11:18
@dima74 dima74 force-pushed the diralik/fix-torii-url branch from 93eb2b7 to e2ba1fd Compare July 29, 2024 11:18
@github-actions github-actions bot added the config-changes Changes in configuration and start up of the Iroha label Jul 29, 2024
Copy link

@BAStos525

@dima74 dima74 merged commit f764b13 into hyperledger-iroha:main Jul 29, 2024
11 of 12 checks passed
@dima74 dima74 deleted the diralik/fix-torii-url branch July 29, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config-changes Changes in configuration and start up of the Iroha
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants