mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove #include "third_party/nearby/proto/connections_enums.proto.h"
PiperOrigin-RevId: 414865191
This commit is contained in:
committed by
Copybara-Service
parent
e0844785a7
commit
5ba6623eac
@@ -27,7 +27,6 @@
|
||||
#include "platform/public/logging.h"
|
||||
#include "proto/analytics/connections_log.pb.h"
|
||||
#include "proto/connections_enums.pb.h"
|
||||
#include "proto/connections_enums.proto.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
#define ANALYTICS_CONNECTION_ATTEMPT_METADATA_PARAMS_H_
|
||||
|
||||
#include "proto/connections_enums.pb.h"
|
||||
#include "proto/connections_enums.proto.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
#include "platform/public/mutex.h"
|
||||
#include "platform/public/mutex_lock.h"
|
||||
#include "proto/connections_enums.pb.h"
|
||||
#include "proto/connections_enums.proto.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "platform/public/condition_variable.h"
|
||||
#include "platform/public/mutex.h"
|
||||
#include "platform/public/system_clock.h"
|
||||
#include "proto/connections_enums.proto.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "platform/base/bluetooth_utils.h"
|
||||
#include "platform/public/logging.h"
|
||||
#include "platform/public/system_clock.h"
|
||||
#include "proto/connections_enums.proto.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
@@ -357,6 +358,7 @@ void BasePcpHandler::OnEncryptionSuccessRunnable(
|
||||
|
||||
// Now we register our endpoint so that we can listen for both sides to
|
||||
// accept.
|
||||
LogConnectionAttemptSuccess(endpoint_id, connection_info);
|
||||
endpoint_manager_->RegisterEndpoint(
|
||||
connection_info.client, endpoint_id,
|
||||
{
|
||||
@@ -391,8 +393,6 @@ void BasePcpHandler::OnEncryptionSuccessRunnable(
|
||||
std::move(connection_info.channel), connection_info.listener,
|
||||
connection_info.connection_token);
|
||||
|
||||
LogConnectionAttemptSuccess(endpoint_id, connection_info);
|
||||
|
||||
if (auto future_status = connection_info.result.lock()) {
|
||||
NEARBY_LOGS(INFO) << "Connection established; Finalising future OK.";
|
||||
future_status->Set({Status::kSuccess});
|
||||
@@ -1491,6 +1491,11 @@ void BasePcpHandler::LogConnectionAttemptSuccess(
|
||||
connection_info.channel->GetBand(),
|
||||
connection_info.channel->GetFrequency(),
|
||||
connection_info.channel->GetTryCount());
|
||||
} else {
|
||||
NEARBY_LOG(ERROR,
|
||||
"PendingConnectionInfo channel is null for "
|
||||
"LogConnectionAttemptSuccess. Bail out.");
|
||||
return;
|
||||
}
|
||||
if (connection_info.is_incoming) {
|
||||
connection_info.client->GetAnalyticsRecorder().OnIncomingConnectionAttempt(
|
||||
|
||||
Reference in New Issue
Block a user