fix: ack is not async. misnamed textchange fields.

This commit is contained in:
cschen 2024-10-26 19:13:37 +02:00
parent 3956d4a27d
commit fb8076dbf5
2 changed files with 6 additions and 7 deletions

View file

@ -72,9 +72,8 @@ impl BufferController {
}
#[pyo3(name = "ack")]
fn pyack(&self, py: Python, v: Vec<u64>) -> PyResult<()> {
let this = self.clone();
a_sync_allow_threads!(py, this.ack(v))
fn pyack(&self, py: Python, v: Vec<i64>) -> () {
self.ack(v)
}
#[pyo3(name = "send")]

View file

@ -279,14 +279,14 @@ impl TextChange {
) -> PyResult<Self> {
if let Some(kwds) = kwds {
Ok(Self {
start_idx,
end_idx,
start_idx: start,
end_idx: end,
content,
})
} else {
Ok(Self {
start_idx,
end_idx,
start_idx: start,
end_idx: end,
content,
})
}