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

Log deser errors when getting all channels/contracts #126

Conversation

luckysori
Copy link
Collaborator

Before this patch we were immediately failing the entire call to get_contracts or get_sub_channels in the event of encountering a single deserialisation failure. This can be problematic if we introduce breaking changes and consumers keep around incompatible data.


We absolutely don't need to merge this if you think it's too much, @Tibo-lg. In practice, this is a mandatory patch for us at 10101. It's kind of nice to be able to be resilient against these things and it's probably okay since dlc-sled-storage-provider is kind of a utility crate.

Before this patch we were immediately failing the entire call to
`get_contracts` or `get_sub_channels` in the event of encountering a
single deserialisation failure. This can be problematic if we
introduce breaking changes and consumers keep around incompatible
data.
@luckysori luckysori requested a review from Tibo-lg July 19, 2023 06:07
@luckysori luckysori self-assigned this Jul 19, 2023
Copy link
Contributor

@Tibo-lg Tibo-lg left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me, and quite a small change so no problem.

@luckysori luckysori merged commit 6a65cf6 into feature/ln-dlc-channels Jul 19, 2023
136 checks passed
@luckysori luckysori deleted the log-deser-errors-when-getting-multiple-things branch July 19, 2023 08:58
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