Skip to content

Commit

Permalink
Add TODO comment
Browse files Browse the repository at this point in the history
Co-authored-by: teor <teor@riseup.net>
  • Loading branch information
ebfull and teor2345 committed Feb 18, 2021
1 parent aa5dd84 commit 5fa2358
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zebra-network/src/protocol/external/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ impl Codec {
/// Obtain the size of the body of a given message. This will match the
/// number of bytes written to the writer provided to `write_body` for the
/// same message.
///
/// TODO: Replace with a size estimate, to avoid multiple serializations
/// for large data structures like lists, blocks, and transactions.
/// See #1774.
fn body_length(&self, msg: &Message) -> usize {
struct FakeWriter(usize);

Expand Down

0 comments on commit 5fa2358

Please sign in to comment.