Skip to content

Commit

Permalink
Bug fix for debug builds in micro_session.cc (#6968)
Browse files Browse the repository at this point in the history
* If the build decides not to inline kReceiveBufferSizeBytes,
  we will encounter a linking error.

Change-Id: Ibbe5b20fdd63acb2b4652ca9896f5737eaf14b00
  • Loading branch information
manupak committed Nov 24, 2020
1 parent 4ef9bb9 commit 448278d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime/micro/micro_session.cc
Expand Up @@ -148,9 +148,10 @@ class MicroTransportChannel : public RPCChannel {
::std::max(::std::chrono::microseconds{0},
::std::chrono::duration_cast<::std::chrono::microseconds>(
end_time - ::std::chrono::steady_clock::now()))};
chunk = frecv_(kReceiveBufferSizeBytes, iter_timeout.count()).operator std::string();
chunk =
frecv_(size_t(kReceiveBufferSizeBytes), iter_timeout.count()).operator std::string();
} else {
chunk = frecv_(kReceiveBufferSizeBytes, nullptr).operator std::string();
chunk = frecv_(size_t(kReceiveBufferSizeBytes), nullptr).operator std::string();
}
pending_chunk_ = chunk;
if (pending_chunk_.size() == 0) {
Expand Down

0 comments on commit 448278d

Please sign in to comment.