()
| 770 | } |
| 771 | |
| 772 | fn runtime() -> anyhow::Result<tokio::runtime::Runtime> { |
| 773 | tokio::runtime::Builder::new_multi_thread() |
| 774 | .enable_all() |
| 775 | .build() |
| 776 | .context("failed to create database-owner runtime") |
| 777 | } |
| 778 | |
| 779 | /// Start the repository owner or reconnect when another process won election. |
| 780 | pub(crate) fn start_or_reconnect(repository: &Path) -> anyhow::Result<OwnerResponse> { |