Commit d0e22fa
committed
Consistently use
Previously, `enqueue_message` took an `M: Type + Writeable` reference,
which didn't make use of our `wire::Message` type, which turned out to
be rather confusing. Here, we use `Message` consistently in
`PeerManager`'s `enqueue_message`, but also in `encrypt_message`, etc.
While at it we also switch to move semantics, which is a nice cleanup.wire::Message for encoding network messages1 parent bb5504e commit d0e22fa
File tree
5 files changed
+285
-153
lines changed- lightning/src/ln
5 files changed
+285
-153
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13872 | 13872 | | |
13873 | 13873 | | |
13874 | 13874 | | |
| 13875 | + | |
13875 | 13876 | | |
| 13877 | + | |
13876 | 13878 | | |
13877 | 13879 | | |
13878 | 13880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| 1127 | + | |
1127 | 1128 | | |
| 1129 | + | |
1128 | 1130 | | |
1129 | 1131 | | |
1130 | 1132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1857 | 1857 | | |
1858 | 1858 | | |
1859 | 1859 | | |
| 1860 | + | |
1860 | 1861 | | |
1861 | 1862 | | |
1862 | 1863 | | |
1863 | 1864 | | |
1864 | 1865 | | |
1865 | 1866 | | |
1866 | 1867 | | |
| 1868 | + | |
1867 | 1869 | | |
1868 | 1870 | | |
1869 | 1871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
568 | | - | |
| 568 | + | |
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
573 | | - | |
| 573 | + | |
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
| |||
0 commit comments