fix: send path received from server

This commit is contained in:
əlemi 2024-02-07 04:41:13 +01:00
parent d78362c745
commit ed1ce45e7f

View file

@ -96,7 +96,7 @@ impl Workspace {
let (tx, rx) = mpsc::channel(10);
let mut req = tonic::Request::new(tokio_stream::wrappers::ReceiverStream::new(rx));
req.metadata_mut().insert("path", tonic::metadata::MetadataValue::try_from(path).expect("could not represent path as byte sequence"));
req.metadata_mut().insert("path", tonic::metadata::MetadataValue::try_from(credentials.id.id).expect("could not represent path as byte sequence"));
let stream = self.services.buffer.clone().attach(req).await?.into_inner();
let worker = BufferWorker::new(self.user_id, path);