This is an automated email from the ASF dual-hosted git repository. mneumann pushed a commit to branch crepererum/public_utils in repository https://gitbox.apache.org/repos/asf/arrow-rs-object-store.git
commit 7860084e17324f3ec28028e9f73d730cc562c5d2 Author: Marco Neumann <[email protected]> AuthorDate: Mon Apr 14 10:26:03 2025 +0200 feat: make `GetOptions::check_precondition` public --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ec660df..66575b8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -976,7 +976,7 @@ impl GetOptions { /// Returns an error if the modification conditions on this request are not satisfied /// /// <https://datatracker.ietf.org/doc/html/rfc7232#section-6> - fn check_preconditions(&self, meta: &ObjectMeta) -> Result<()> { + pub fn check_preconditions(&self, meta: &ObjectMeta) -> Result<()> { // The use of the invalid etag "*" means no ETag is equivalent to never matching let etag = meta.e_tag.as_deref().unwrap_or("*"); let last_modified = meta.last_modified;
