mirror of
https://github.com/openharmony/third_party_rust_tower.git
synced 2026-07-21 04:15:22 -04:00
9fb13f5ea5
This change moves `Buffer` from `mpsc::unbounded` to `mpsc::channel`. The primary motivation for this change is that bounded channels provide back-pressure to callers, so that `Balance<Buffer>` for example works as expected. Currently, `Buffer` will accept as many requests as you can make for it without ever stopping down, slowly eating up all your memory.