Xuanwo opened a new issue, #8855: URL: https://github.com/apache/opendal/issues/8855
> AI-authored issue from a read-only readability audit against `main` (`615a8f24f`), guided by the optimize-for-reading guidelines in #8847. ### Problem `WriteGenerator<W>` (`core/core/src/types/context/write.rs:138-195`) is a crate-internal type (not exported publicly) with two readability papercuts: 1. **Unused generic parameter `<W>`**: Every `impl` block hardcodes `WriteGenerator<oio::Writer>`, so `W` serves no purpose. 2. **Misleading name**: It is not a generator—it owns chunk buffering (`exact` / `QueueBuf`), partial-write abort tracking (`requires_abort`), and `copy_from` continuation state (`pending_copy`). Its constructor doc comment at `write.rs:158` still refers to an older name (`"Create a new exact buf writer."`). ### Proposed Change - Remove the unused generic parameter `<W>` and store `oio::Writer` directly. - Rename `WriteGenerator` to a name that matches its actual responsibility (especially alongside removing `ReadGenerator` in #8848). -- 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]
