Get the height of the source hypersync instance
(&'py self, py: Python<'py>)
| 70 | |
| 71 | /// Get the height of the source hypersync instance |
| 72 | pub fn get_height<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> { |
| 73 | let inner = Arc::clone(&self.inner); |
| 74 | future_into_py(py, async move { |
| 75 | let height: u64 = inner.get_height().await?; |
| 76 | Ok(height) |
| 77 | }) |
| 78 | } |
| 79 | |
| 80 | /// Get the chain_id of the source hypersync instance |
| 81 | pub fn get_chain_id<'py>(&'py self, py: Python<'py>) -> PyResult<Bound<'py, PyAny>> { |
no outgoing calls