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

Chore/update 202403 #665

Merged
merged 6 commits into from Apr 4, 2024
Merged

Chore/update 202403 #665

merged 6 commits into from Apr 4, 2024

Conversation

jrconlin
Copy link
Member

note: the bump for actix and reqwest appears to have caused a bit of divergence around StatusCode. I'm not super happy with the fix, but it works, and we shouldn't get any odd status codes that don't work between versions.

@jrconlin jrconlin requested review from pjenvey and taddes March 22, 2024 22:24
autoendpoint/src/routers/apns/router.rs Outdated Show resolved Hide resolved
@@ -44,17 +44,17 @@ tokio.workspace = true
url.workspace = true
uuid.workspace = true

a2 = { version = "0.8", git = "https://github.com/mozilla-services/a2", branch = "master" }
a2 = { version = "0.8" }
Copy link
Member

Choose a reason for hiding this comment

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

I guess we finally got all our stuff merged in to a release

@@ -119,7 +119,7 @@ impl RouterError {
match self {
RouterError::Adm(e) => e.status(),
RouterError::Apns(e) => e.status(),
RouterError::Fcm(e) => e.status(),
RouterError::Fcm(e) => StatusCode::from_u16(e.status().as_u16()).unwrap_or_default(),
Copy link
Member

Choose a reason for hiding this comment

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

That's annoying, hopefully this will go away at some point (until it maybe happens again) actix/actix-web#3208 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, to be honest, though, this is just the latest when it comes to this sort of refactoring. base64 was the last one to do something like this. I expect some other key library to be the next.

And then I get to deal with protobuf3 fun.

@jrconlin jrconlin requested a review from pjenvey April 3, 2024 22:58
Right, so, Apparently you do need "PayloadLike" as a type declaration in
order for `payload.to_json_string()` to work. You could also call
`PayloadLike` directly if you wanted. We'll use the implicit function.
@jrconlin jrconlin merged commit 69dae89 into master Apr 4, 2024
1 check passed
@jrconlin jrconlin deleted the chore/update-202403 branch April 4, 2024 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants