mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-25 15:43:13 +03:00
Remove redundant const value kDefaultConnectionIdLimit
Reviewed By: mjoras Differential Revision: D22264684 fbshipit-source-id: aade83c4c19d0d285bd78755227bc257b071561a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
596c70c3ba
commit
8fd23f5316
@@ -162,7 +162,7 @@ void processServerInitialParams(
|
||||
// Currently no-op for a client; it doesn't issue connection ids
|
||||
// to the server.
|
||||
conn.peerActiveConnectionIdLimit =
|
||||
activeConnectionIdLimit.value_or(kDefaultConnectionIdLimit);
|
||||
activeConnectionIdLimit.value_or(kDefaultActiveConnectionIdLimit);
|
||||
|
||||
if (partialReliability && *partialReliability != 0 &&
|
||||
conn.transportSettings.partialReliabilityEnabled) {
|
||||
|
||||
@@ -33,7 +33,6 @@ constexpr size_t kMinInitialDestinationConnIdLength = 8;
|
||||
// set conn id version at the first 4 bits
|
||||
constexpr uint8_t kShortVersionId = 0x1;
|
||||
|
||||
constexpr uint64_t kDefaultConnectionIdLimit = 2;
|
||||
constexpr uint64_t kInitialSequenceNumber = 0x0;
|
||||
|
||||
struct ConnectionId {
|
||||
|
||||
@@ -185,7 +185,7 @@ void processClientInitialParams(
|
||||
}
|
||||
|
||||
conn.peerActiveConnectionIdLimit =
|
||||
activeConnectionIdLimit.value_or(kDefaultConnectionIdLimit);
|
||||
activeConnectionIdLimit.value_or(kDefaultActiveConnectionIdLimit);
|
||||
|
||||
if (partialReliability && *partialReliability != 0 &&
|
||||
conn.transportSettings.partialReliabilityEnabled) {
|
||||
|
||||
@@ -155,7 +155,7 @@ struct TransportSettings {
|
||||
// Default initial RTT
|
||||
std::chrono::microseconds initialRtt{kDefaultInitialRtt};
|
||||
// The active_connection_id_limit that is sent to the peer.
|
||||
uint64_t selfActiveConnectionIdLimit{kDefaultConnectionIdLimit};
|
||||
uint64_t selfActiveConnectionIdLimit{kDefaultActiveConnectionIdLimit};
|
||||
// Maximum size of the batch that should be used when receiving packets from
|
||||
// the kernel in one event loop.
|
||||
size_t maxRecvBatchSize{5};
|
||||
|
||||
Reference in New Issue
Block a user