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

P2pService: Make max_response_size in PostcardCodec a u64 #2460

Open
wants to merge 2 commits into
base: 2368-remove-p2pservice-networkcodec-trait
Choose a base branch
from

Conversation

acerone85
Copy link
Contributor

Linked Issues/PRs

Closes #2459

Description

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests
  • The specification matches the implemented behavior (link update PR if changes are needed)

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

[Add or remove entries as needed]

@@ -14,7 +14,7 @@ use std::{
pub struct PostcardCodec;

impl RequestResponseMessageHandler<PostcardCodec> {
pub fn new(max_block_size: usize) -> Self {
pub fn new(max_block_size: u64) -> Self {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can use NonZeroU64, then we don't need check below=)

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