-
Notifications
You must be signed in to change notification settings - Fork 16
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
Chore/update 202403 #665
Conversation
@@ -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" } |
There was a problem hiding this comment.
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(), |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
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.
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.