numinnex commented on PR #2887: URL: https://github.com/apache/iggy/pull/2887#issuecomment-4022774578
I don't like this solution, rather what we should do is have an private constructor for the `Message`, that is fallable and fails when the `Command` or `Operation` enum is incorrect. On top of that replace the `From` impl that casts one message type to another with an `TryFrom` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
