-
Notifications
You must be signed in to change notification settings - Fork 30
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
Switch to attachments v4 #330
base: main
Are you sure you want to change the base?
Conversation
async fn post_to_cdn0<'s, C: std::io::Read + Send + 's>( | ||
&mut self, | ||
cdn_id: u32, |
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.
async fn post_to_cdn0<'s, C: std::io::Read + Send + 's>( | |
&mut self, | |
cdn_id: u32, | |
async fn post_to_cdn<'s, C: std::io::Read + Send + 's>( | |
&mut self, | |
cdn_id: u32, |
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.
(We probably want to retain upload capability to cdn0 for profile pics etc?)
#[tracing::instrument(skip(self))] | ||
async fn post( | ||
&mut self, | ||
service: Endpoint, | ||
path: &str, | ||
additional_headers: &[(&str, &str)], | ||
credentials_override: HttpAuthOverride, | ||
) -> Result<HashMap<String, String>, ServiceError> { |
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.
Post without any data?
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.
yes 😁 don't shoot the messenger implementer
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.
In that case maybe
#[tracing::instrument(skip(self))] | |
async fn post( | |
&mut self, | |
service: Endpoint, | |
path: &str, | |
additional_headers: &[(&str, &str)], | |
credentials_override: HttpAuthOverride, | |
) -> Result<HashMap<String, String>, ServiceError> { | |
#[tracing::instrument(skip(self))] | |
async fn post_empty_body( | |
&mut self, | |
service: Endpoint, | |
path: &str, | |
additional_headers: &[(&str, &str)], | |
credentials_override: HttpAuthOverride, | |
) -> Result<HashMap<String, String>, ServiceError> { |
just for clarity?
which means dropping CDN0 which was AWS CloudFront and use CDN2 or CDN3 depending on what the server tells us to do.
TODO:
post_to_cdn0
functional, even though I'm not sure whether it is used or not.In general, I'd like to ditch
libsignal-service-actix
since it is not used anymore, which in turn will let us remove thePushService
trait and let us have a much nicer direct access to the HTTP API.Closes #320