Skip to content

Commit

Permalink
Todo: max_response_size should be u64
Browse files Browse the repository at this point in the history
  • Loading branch information
acerone85 committed Nov 26, 2024
1 parent e9f1404 commit b94c451
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/services/p2p/src/codecs/request_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ pub struct RequestResponseMessageHandler<Codec> {
/// Used for `max_size` parameter when reading Response Message
/// Necessary in order to avoid DoS attacks
/// Currently the size mostly depends on the max size of the Block
// TODO: https://github.com/FuelLabs/fuel-core/issues/2459.
// Make this a u64 instead of usize.
pub(crate) max_response_size: usize,
}

Expand Down

0 comments on commit b94c451

Please sign in to comment.