Skip to content

Commit 08e96f6

Browse files
committed
make request id const
1 parent 54ddbac commit 08e96f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/viam/sdk/components/private/audio_in_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ::grpc::Status AudioInServer::GetAudio(
1818
::grpc::ServerWriter<::viam::component::audioin::v1::GetAudioResponse>* writer) noexcept {
1919
make_service_helper<AudioIn>(
2020
"AudioInServer::GetAudio", this, request)([&](auto& helper, auto& audio_in) {
21-
std::string request_id = boost::uuids::to_string(boost::uuids::random_generator()());
21+
const std::string request_id = boost::uuids::to_string(boost::uuids::random_generator()());
2222
auto writeChunk = [writer, context, request_id](AudioIn::audio_chunk&& chunk) {
2323
if (context->IsCancelled()) {
2424
// send bool to tell the resource to stop calling the callback function.

0 commit comments

Comments
 (0)