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

Update lib.rs #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update lib.rs #2

wants to merge 1 commit into from

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

@RishikeshJ21 RishikeshJ21 left a comment

Choose a reason for hiding this comment

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

Thankyou

@RishikeshJ21
Copy link
Owner

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