meteorgan commented on PR #5871: URL: https://github.com/apache/opendal/pull/5871#issuecomment-2753218450
I think the crux of the issue lies here, `metadata()` returns a `u64`, not an `Option<u64>`. I'm not sure if we're required to always return a valid `content_length`. If we are, why does the comment mention it'll be 0 when unset ? That could clash with cases where the content is genuinely empty. https://github.com/apache/opendal/blob/8c72db973a97cf94b3acbb9744933b8e0d635815/core/src/types/metadata.rs#L223-L226 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
