Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iggy website binary specification does not define MessageState #698

Open
0xg0nz0 opened this issue Feb 18, 2024 · 1 comment
Open

Iggy website binary specification does not define MessageState #698

0xg0nz0 opened this issue Feb 18, 2024 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@0xg0nz0
Copy link

0xg0nz0 commented Feb 18, 2024

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
}
@spetz
Copy link
Collaborator

spetz commented Feb 19, 2024

You're correct, will update :)

@hubcio hubcio added bug Something isn't working documentation Improvements or additions to documentation labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants