Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(file sink): Upgrade file sink for tokio-compat (#1988)
* Revert "Disable file sink and files bench" This reverts commit dd5c922. Signed-off-by: MOZGIII <mike-n@narod.ru> * Upgrade file sink for tokio 0.2 Signed-off-by: MOZGIII <mike-n@narod.ru> * Further StreamingSink to refactoring - switch StreamingSink to impl Stream - provides a significant boot to composability; - simpler compat layer - this compat approach should be much easier to understand, it consists of a set of simple and documented components that are composed together in a meaningful way; - switch tests to directly working with FileSink instead of futures compat layer - this build upon on StreamingSink taking impl Stream instead of mpsc::Receiver. Signed-off-by: MOZGIII <mike-n@narod.ru> * Corrected tracing Signed-off-by: MOZGIII <mike-n@narod.ru> * Extracted event processing logic to a separate function Signed-off-by: MOZGIII <mike-n@narod.ru> * Switch from futures::future::select to tokio02::select! Signed-off-by: MOZGIII <mike-n@narod.ru> * Make ExpiringHashMap Unpin Signed-off-by: MOZGIII <mike-n@narod.ru> * Move ?Sized to where clause Signed-off-by: MOZGIII <mike-n@narod.ru> * Simplified the ExpiringHashMap API Signed-off-by: MOZGIII <mike-n@narod.ru> * Unify item kind at ExpiringHashMap::remove and ExpiringHashMap::poll_expired Signed-off-by: MOZGIII <mike-n@narod.ru> * Move ExpiringHashMap to expiring_hash_map/mod.rs Signed-off-by: MOZGIII <mike-n@narod.ru> * Add some tests Signed-off-by: MOZGIII <mike-n@narod.ru> * Add insert_waker, make tests pass Signed-off-by: MOZGIII <mike-n@narod.ru> * Add another test Signed-off-by: MOZGIII <mike-n@narod.ru> * Improved value assertion test Signed-off-by: MOZGIII <mike-n@narod.ru> * Add wake count tests Signed-off-by: MOZGIII <mike-n@narod.ru> * Simplify compat, get rid of UnitTypeErrorSink01 in favor of sink_map_err Signed-off-by: MOZGIII <mike-n@narod.ru> * Eliminate useless log message Signed-off-by: MOZGIII <mike-n@narod.ru> * Switch FileSink to impl Future instead of Stream Signed-off-by: MOZGIII <mike-n@narod.ru> * Upgrade tokio for sync::Notify Signed-off-by: MOZGIII <mike-n@narod.ru> * Implemented an API that we settled on with Lucio Signed-off-by: MOZGIII <mike-n@narod.ru> * Add docs Signed-off-by: MOZGIII <mike-n@narod.ru> * Better comment at the example Signed-off-by: MOZGIII <mike-n@narod.ru> * Make StreamingSink::run's input 'static Signed-off-by: MOZGIII <mike-n@narod.ru> * Remove .get_ref() from ?path Signed-off-by: MOZGIII <mike-n@narod.ru> * Correct typos and grammar errors at the docs Signed-off-by: MOZGIII <mike-n@narod.ru> * Documented the unreachable! branch Signed-off-by: MOZGIII <mike-n@narod.ru> * Move expiring_hash_map tests mod into it's main file Signed-off-by: MOZGIII <mike-n@narod.ru> * Compacted nesting Signed-off-by: MOZGIII <mike-n@narod.ru> * Fix the typos at the streaming sink compat docs Signed-off-by: MOZGIII <mike-n@narod.ru>
- Loading branch information