(path: T)
| 28 | } |
| 29 | |
| 30 | async fn create_file_sink<T>(path: T) -> Result<sea_streamer_file::FileSink> |
| 31 | where |
| 32 | T: Into<String>, |
| 33 | { |
| 34 | let file_id = sea_streamer_file::FileId::new(path); |
| 35 | let async_file = sea_streamer_file::AsyncFile::new_ow(file_id) |
| 36 | .await |
| 37 | .context("Fail to create async file")?; |
| 38 | let res = sea_streamer_file::FileSink::new(async_file, 1_000_000_000) |
| 39 | .context("Fail to create file sink")?; |
| 40 | Ok(res) |
| 41 | } |
| 42 | |
| 43 | pub async fn from_bson_file<T>(path: &str) -> Result<T> |
| 44 | where |
no outgoing calls
no test coverage detected