mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Fixed the issue to initialize an EndpointInfo instance in payload manager.
PiperOrigin-RevId: 400624671
This commit is contained in:
committed by
Copybara-Service
parent
0d803da06e
commit
4c72e4667e
@@ -366,6 +366,7 @@ void PayloadManager::SendPayload(ClientProxy* client,
|
||||
payload_total_size = -1;
|
||||
break;
|
||||
}
|
||||
|
||||
auto executor = GetOutgoingPayloadExecutor(payload.GetType());
|
||||
// The |executor| will be null if the payload is of a type we cannot work
|
||||
// with. This should never be reached since the ServiceControllerRouter has
|
||||
@@ -1170,10 +1171,11 @@ PayloadManager::PendingPayload::PendingPayload(
|
||||
// failures. Any of these situations will cause endpoint to be marked as
|
||||
// unavailable.
|
||||
for (const auto& id : endpoint_ids) {
|
||||
endpoints_.emplace(id, EndpointInfo{
|
||||
.id = id,
|
||||
.status{EndpointInfo::Status::kAvailable},
|
||||
});
|
||||
EndpointInfo endpoint_info{};
|
||||
endpoint_info.id = id;
|
||||
endpoint_info.status.Set(EndpointInfo::Status::kAvailable);
|
||||
|
||||
endpoints_.emplace(id, std::move(endpoint_info));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user