dmccloskey commented on PR #660:
URL: 
https://github.com/apache/arrow-rs-object-store/pull/660#issuecomment-4063375979

   @kylebarron Thanks for your response.
   
   1. Some issue with line endings apparently
   2. Perhaps I am just doing something incorrect then. My use case is the 
following:
   
   ```
   pub struct MyStream {
       pub store: Option<Arc<dyn ObjectStore>>,
       pub path: Option<Path>,
       pub state: Option<Pin<Box<dyn Future<Output = Result<GetResult, 
object_store::Error>> + Send + 'static>>>
       ...
   }
   
   impl<'a> Stream for ObjectStoreStream<'a> {
       type Item = Result<Bytes>;
   
       fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> 
Poll<Option<Self::Item>> {
           let store = self.store.as_ref().unwrap().clone();
           let path = self.path.clone();
           let fut = Box::pin( store.get(&path));
           self.state.replace(fut);
           self.poll_next(cx)
       ...
       }
   }
   
   ```
   3. Gotcha


-- 
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]

Reply via email to