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

refactor: migrate to axum #4718

Merged
merged 5 commits into from
Jul 2, 2024
Merged

Conversation

Erigara
Copy link
Contributor

@Erigara Erigara commented Jun 11, 2024

Description

Migrate from warp to axum.

With current implementation i tried to preserve the same behavior as before.

I would suggest further improvements in the separate PRs.

Linked issue

Closes #3776

Benefits

Bring more simplicity to torii.

@Erigara Erigara self-assigned this Jun 11, 2024
@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Jun 11, 2024
@Erigara Erigara marked this pull request as draft June 11, 2024 14:38
@0x009922 0x009922 self-assigned this Jun 12, 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.

Finally!

But Torii tests are failing. Thanks to @AlexStroke, the reports are quite informative.

torii/src/lib.rs Outdated Show resolved Hide resolved
torii/src/lib.rs Outdated Show resolved Hide resolved
@Erigara
Copy link
Contributor Author

Erigara commented Jun 13, 2024

But Torii tests are failing.

Tests are fixed + added extra test for different wrong body errors, the problem was mainly because pytests didn't set proper headers.

@Erigara
Copy link
Contributor Author

Erigara commented Jun 13, 2024

@AlexStroke please take a look at torii pytests

@Erigara Erigara force-pushed the migrate_axum branch 2 times, most recently from 20e867b to 4169e77 Compare June 13, 2024 12:00
@Erigara Erigara marked this pull request as ready for review June 13, 2024 12:01
@Erigara Erigara force-pushed the migrate_axum branch 2 times, most recently from 0dfa6d1 to 8f909ae Compare June 18, 2024 13:28
@Erigara
Copy link
Contributor Author

Erigara commented Jun 18, 2024

Ignore first commit, it's extracted in separate PR and here only to make unit tests work

@Erigara Erigara requested a review from 0x009922 June 19, 2024 12:52
@Erigara Erigara force-pushed the migrate_axum branch 3 times, most recently from dfa26fe to 728921f Compare June 20, 2024 08:44
torii/src/lib.rs Outdated Show resolved Hide resolved
torii/src/lib.rs Show resolved Hide resolved
torii/src/lib.rs Outdated Show resolved Hide resolved
Cargo.toml Show resolved Hide resolved
DCNick3
DCNick3 previously approved these changes Jun 28, 2024
torii/src/utils.rs Outdated Show resolved Hide resolved
DCNick3
DCNick3 previously approved these changes Jun 28, 2024
0x009922
0x009922 previously approved these changes Jul 1, 2024
@Erigara Erigara dismissed stale reviews from 0x009922 and DCNick3 via f2a92d7 July 1, 2024 08:49
@Erigara Erigara requested review from DCNick3 and 0x009922 July 1, 2024 08:50
DCNick3
DCNick3 previously approved these changes Jul 1, 2024
0x009922
0x009922 previously approved these changes Jul 2, 2024
@Erigara Erigara dismissed stale reviews from 0x009922 and DCNick3 via ea2fc50 July 2, 2024 07:11
@Erigara Erigara requested review from DCNick3 and 0x009922 July 2, 2024 07:14
@Erigara Erigara merged commit b432910 into hyperledger-iroha:main Jul 2, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-changes Changes in the API for client libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[refactor] Migrate from warp to axum/actix
3 participants