removed old select_buffer code from the bindings, atm not required.

Former-commit-id: 01a0dee921f726229aa40f3253792bafd845a0c6
This commit is contained in:
Camillo Schenone 2023-12-02 22:21:56 +01:00
parent d96acdde48
commit 5e1c0e597f
2 changed files with 15 additions and 13 deletions

View file

@ -1 +1 @@
ef547495939b20dc50fcf0505d8ebd77dc3721f1
b6bceb4b1aed8179ebc591aa695da27a964bb8ed

View file

@ -161,20 +161,22 @@ impl PyClientHandle {
})
}
fn select_buffer<'a>(&'a self, py: Python<'a>) -> PyResult<&'a PyAny> {
let rc = self.0.clone();
// TODO: SELECT_BUFFER IS NO LONGER A CLIENT FUNCTION.
// low prio, add it back eventually.
// fn select_buffer<'a>(&'a self, py: Python<'a>) -> PyResult<&'a PyAny> {
// let rc = self.0.clone();
pyo3_asyncio::tokio::future_into_py(py, async move {
let cont = rc.select_buffer()
.await
.map_err(PyCodempError::from)?;
// pyo3_asyncio::tokio::future_into_py(py, async move {
// let cont = rc.select_buffer()
// .await
// .map_err(PyCodempError::from)?;
Python::with_gil(|py| {
let pystr: Py<PyString> = PyString::new(py, cont.as_str()).into();
Ok(pystr)
})
})
}
// Python::with_gil(|py| {
// let pystr: Py<PyString> = PyString::new(py, cont.as_str()).into();
// Ok(pystr)
// })
// })
// }
}