diff --git a/connections/implementation/mediums/multiplex/multiplex_output_stream.cc b/connections/implementation/mediums/multiplex/multiplex_output_stream.cc index bd35e33c..16f311b4 100644 --- a/connections/implementation/mediums/multiplex/multiplex_output_stream.cc +++ b/connections/implementation/mediums/multiplex/multiplex_output_stream.cc @@ -116,7 +116,6 @@ bool MultiplexOutputStream::Close(const std::string& service_id) { return false; } - // auto service_id_hash_salt = item->second->GetServiceIdHashSalt(); item->second->Close(); if (is_enabled_.Get()) { Future future; diff --git a/connections/implementation/mediums/webrtc/connection_flow.cc b/connections/implementation/mediums/webrtc/connection_flow.cc index 7de219f9..ef01a825 100644 --- a/connections/implementation/mediums/webrtc/connection_flow.cc +++ b/connections/implementation/mediums/webrtc/connection_flow.cc @@ -306,7 +306,7 @@ bool ConnectionFlow::OnRemoteIceCandidatesReceived( pc->signaling_thread()->PostTask( [this, can_run_tasks = std::weak_ptr(can_run_tasks_), candidates = std::move(ice_candidates)]() mutable { - // don't run the task if the weak_ptr is no longer valid. + // Don't run the task if the weak_ptr is no longer valid. if (!can_run_tasks.lock()) { return; } @@ -529,7 +529,7 @@ bool ConnectionFlow::RunOnSignalingThread(Runnable&& runnable) { pc->signaling_thread()->PostTask( [can_run_tasks = std::weak_ptr(can_run_tasks_), task = std::move(runnable)]() mutable { - // don't run the task if the weak_ptr is no longer valid. + // Don't run the task if the weak_ptr is no longer valid. // shared_ptr |can_run_tasks_| is destroyed on the same thread // (signaling thread). This guarantees that if the weak_ptr is valid // when this task starts, it will stay valid until the task ends. diff --git a/connections/implementation/mediums/webrtc/data_channel_listener.h b/connections/implementation/mediums/webrtc/data_channel_listener.h index 8e6edea8..17e6a0dc 100644 --- a/connections/implementation/mediums/webrtc/data_channel_listener.h +++ b/connections/implementation/mediums/webrtc/data_channel_listener.h @@ -26,7 +26,7 @@ namespace mediums { // Callbacks from the data channel. struct DataChannelListener { - // Called when the data channel is open and the socket wraper is ready to + // Called when the data channel is open and the socket wrapper is ready to // read and write. absl::AnyInvocable data_channel_open_cb = [](WebRtcSocketWrapper) {};