Skip to content

Conversation

@EastOrb
Copy link

@EastOrb EastOrb commented Nov 9, 2023

Use Result in add_message: Changed the return type of add_message to Result to handle errors more explicitly.

Better Input Validation: Added input validation for non-empty fields and a size check to prevent exceeding the maximum allowed size.

Logging Integration: Introduced logging statements to track message addition, updates, and deletions.

Parameterized Memory Sizes: Added a constant MAX_MESSAGE_SIZE to parameterize the maximum allowed size for a message.

Use Result in add_message: Changed the return type of add_message to Result to handle errors more explicitly.

Better Input Validation: Added input validation for non-empty fields and a size check to prevent exceeding the maximum allowed size.

Logging Integration: Introduced logging statements to track message addition, updates, and deletions.

Parameterized Memory Sizes: Added a constant MAX_MESSAGE_SIZE to parameterize the maximum allowed size for a message.
Copy link
Owner

@0xrish 0xrish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thankyou

@0xrish
Copy link
Owner

0xrish commented Nov 29, 2023

ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants