iggy icon indicating copy to clipboard operation
iggy copied to clipboard

Iggy website binary specification does not define MessageState

Open 0xg0nz0 opened this issue 1 year ago • 1 comments

This definition:

pub struct Message {
    pub offset: u64,
    pub state: MessageState,
    pub timestamp: u64,
    pub id: u128,
    pub checksum: u32,
    pub headers: Option<HashMap<HeaderKey, HeaderValue>>,
    pub length: u32,
    pub payload: Bytes,
}

references a MessageState enum that is not defined. From the Rust source code it should be defined as:

public enum MessageState {
    Available,  // Value = 1
    Unavailable,  // Value = 10
    Poisoned,  // Value = 20
    MarkedForDeletion  // Value = 30
}

0xg0nz0 avatar Feb 18 '24 19:02 0xg0nz0

You're correct, will update :)

spetz avatar Feb 19 '24 11:02 spetz