Commit 1944ac0
Extract second stage of ChannelManager::read into from_channel_manager_data
Move the validation and reconstruction logic (stage 2) from the
ReadableArgs::read implementation into a new pub(super) constructor
`from_channel_manager_data`. This separates the pure deserialization
from the complex reconstruction logic, making the code more modular
and easier to test.
The read function now:
1. Deserializes into ChannelManagerData (stage 1)
2. Calls from_channel_manager_data for validation/reconstruction (stage 2)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent ae60beb commit 1944ac0
1 file changed
Lines changed: 39 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17838 | 17838 | | |
17839 | 17839 | | |
17840 | 17840 | | |
17841 | | - | |
| 17841 | + | |
17842 | 17842 | | |
17843 | 17843 | | |
17844 | 17844 | | |
| |||
17852 | 17852 | | |
17853 | 17853 | | |
17854 | 17854 | | |
| 17855 | + | |
| 17856 | + | |
| 17857 | + | |
| 17858 | + | |
| 17859 | + | |
| 17860 | + | |
| 17861 | + | |
| 17862 | + | |
| 17863 | + | |
| 17864 | + | |
| 17865 | + | |
| 17866 | + | |
| 17867 | + | |
| 17868 | + | |
| 17869 | + | |
| 17870 | + | |
| 17871 | + | |
| 17872 | + | |
| 17873 | + | |
| 17874 | + | |
| 17875 | + | |
| 17876 | + | |
| 17877 | + | |
| 17878 | + | |
| 17879 | + | |
| 17880 | + | |
| 17881 | + | |
| 17882 | + | |
| 17883 | + | |
| 17884 | + | |
| 17885 | + | |
| 17886 | + | |
| 17887 | + | |
| 17888 | + | |
| 17889 | + | |
| 17890 | + | |
| 17891 | + | |
| 17892 | + | |
17855 | 17893 | | |
17856 | 17894 | | |
17857 | 17895 | | |
| |||
0 commit comments