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

quic: remove redundant cast #34086

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/quic/node_quic_session.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2896,8 +2896,8 @@ int QuicSession::OnReceiveCryptoData(
if (UNLIKELY(session->is_destroyed()))
return NGTCP2_ERR_CALLBACK_FAILURE;
QuicSession::Ngtcp2CallbackScope callback_scope(session);
return static_cast<int>(
session->crypto_context()->Receive(crypto_level, offset, data, datalen));
return session->crypto_context()->Receive(
crypto_level, offset, data, datalen);
}

// Called by ngtcp2 for both client and server connections
Expand Down