1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-10 21:22:20 +03:00
Files
mvfst/quic/logging/QLoggerConstants.cpp
Mirko Andjic 3f419b2eb2 Add vantage point to qlog.
Summary: Landing an outstanding diff

Reviewed By: yangchi

Differential Revision: D19261395

fbshipit-source-id: 437461222ff04f5c3271567d3bb064bceaf80029
2020-01-07 11:19:13 -08:00

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