huskies: merge 858
This commit is contained in:
@@ -62,6 +62,7 @@ pub(crate) use state::{ALL_OPS, VECTOR_CLOCK};
|
||||
|
||||
/// Hex-encode a byte slice (no external dep needed).
|
||||
pub(crate) mod hex {
|
||||
/// Encode `bytes` as a lowercase hexadecimal string.
|
||||
pub fn encode(bytes: &[u8]) -> String {
|
||||
bytes.iter().map(|b| format!("{b:02x}")).collect()
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ pub struct GatewayConfigCrdt {
|
||||
pub active_project: LwwRegisterCrdt<String>,
|
||||
}
|
||||
|
||||
/// Top-level CRDT document holding all replicated pipeline state (items, nodes, jobs, etc.).
|
||||
#[add_crdt_fields]
|
||||
#[derive(Clone, CrdtNode, Debug)]
|
||||
pub struct PipelineDoc {
|
||||
@@ -57,6 +58,7 @@ pub struct PipelineDoc {
|
||||
pub gateway_config: GatewayConfigCrdt,
|
||||
}
|
||||
|
||||
/// CRDT sub-document representing a single pipeline work item with LWW fields for stage, agent, etc.
|
||||
#[add_crdt_fields]
|
||||
#[derive(Clone, CrdtNode, Debug)]
|
||||
pub struct PipelineItemCrdt {
|
||||
|
||||
Reference in New Issue
Block a user