mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-09 10:00:57 +03:00
Move early app data params getter and validator to QuicConnectionStateBase (#117)
Summary: This ensures they are available to the whole stack rather than the transport only. The validator needs it in the server case, and will soon need it in the client case, so that seems appropriate to make it available. Pull Request resolved: https://github.com/facebookincubator/mvfst/pull/117 Reviewed By: yangchi Differential Revision: D20536366 Pulled By: mjoras fbshipit-source-id: a76d369c0a82b9be1f985aed1f33f7a6b338a2ae
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b52f2d97f4
commit
7a1b58e5e8
@@ -2265,8 +2265,8 @@ void QuicTransportBase::setEarlyDataAppParamsFunctions(
|
||||
folly::Function<bool(const folly::Optional<std::string>&, const Buf&) const>
|
||||
validator,
|
||||
folly::Function<Buf()> getter) {
|
||||
earlyDataAppParamsValidator_ = std::move(validator);
|
||||
earlyDataAppParamsGetter_ = std::move(getter);
|
||||
conn_->earlyDataAppParamsValidator = std::move(validator);
|
||||
conn_->earlyDataAppParamsGetter = std::move(getter);
|
||||
}
|
||||
|
||||
void QuicTransportBase::cancelAllAppCallbacks(
|
||||
|
||||
Reference in New Issue
Block a user