Update src/io/rsm/rsm_client.hpp

Co-authored-by: Jeremy B <97525434+42jeremy@users.noreply.github.com>
This commit is contained in:
Tyler Neely 2022-12-06 11:31:40 +01:00 committed by GitHub
parent 25713405df
commit b288f06cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ class RsmClient {
BasicResult<TimedOut, WriteResponseT> SendWriteRequest(WriteRequestT req) { BasicResult<TimedOut, WriteResponseT> SendWriteRequest(WriteRequestT req) {
Notifier notifier; Notifier notifier;
ReadinessToken readiness_token{0}; const ReadinessToken readiness_token{0};
SendAsyncWriteRequest(req, notifier, readiness_token); SendAsyncWriteRequest(req, notifier, readiness_token);
auto poll_result = AwaitAsyncWriteRequest(readiness_token); auto poll_result = AwaitAsyncWriteRequest(readiness_token);
while (!poll_result) { while (!poll_result) {