pg_replica 0.2.0

Consensus-driven failover for PostgreSQL (Raft control plane)
1
2
3
4
5
6
7
8
9
10
11
12
use std::io::Cursor;

use crate::failover::Decision;

openraft::declare_raft_types!(
    pub TypeConfig:
        D = Decision,
        R = (),
);

pub type NodeId = u64;
pub type Node = openraft::BasicNode;