Skip to content

Commit

Permalink
fix: ack is not async. misnamed textchange fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghyatzo committed Oct 26, 2024
1 parent 3956d4a commit fb8076d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/ffi/python/controllers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
8 changes: 4 additions & 4 deletions src/ffi/python/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})
}
Expand Down

0 comments on commit fb8076d

Please sign in to comment.