mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-10 21:22:20 +03:00
Summary: Landing an outstanding diff Reviewed By: yangchi Differential Revision: D19261395 fbshipit-source-id: 437461222ff04f5c3271567d3bb064bceaf80029
22 lines
550 B
C++
22 lines
550 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
#include <quic/logging/QLoggerConstants.h>
|
|
|
|
namespace quic {
|
|
folly::StringPiece vantagePointString(VantagePoint vantagePoint) noexcept {
|
|
switch (vantagePoint) {
|
|
case VantagePoint::Client:
|
|
return kQLogClientVantagePoint;
|
|
case VantagePoint::Server:
|
|
return kQLogServerVantagePoint;
|
|
}
|
|
folly::assume_unreachable();
|
|
}
|
|
} // namespace quic
|