(operation: F)
| 851 | } |
| 852 | |
| 853 | fn run_outside_async_runtime<T, F>(operation: F) -> anyhow::Result<T> |
| 854 | where |
| 855 | T: Send + 'static, |
| 856 | F: FnOnce() -> anyhow::Result<T> + Send + 'static, |
| 857 | { |
| 858 | std::thread::spawn(operation) |
| 859 | .join() |
| 860 | .map_err(|_| anyhow!("database owner client thread panicked"))? |
| 861 | } |
| 862 | |
| 863 | /// Send one request to an already-running owner. |
| 864 | fn request(repository: &Path, request_body: OwnerRequest) -> anyhow::Result<OwnerResponse> { |
no outgoing calls
no test coverage detected