Merge pull request #5070 from sfc-gh-xwang/tlog_dev

add setByteLimit in tutorial
This commit is contained in:
Jingyu Zhou 2021-06-28 13:23:23 -07:00 committed by GitHub
commit 0dbc8ba793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ ACTOR Future<Void> echoServer() {
req.reply.send(std::string(req.message.rbegin(), req.message.rend()));
}
when(state StreamRequest req = waitNext(echoServer.stream.getFuture())) {
req.reply.setByteLimit(1024);
state int i = 0;
for (; i < 100; ++i) {
wait(req.reply.onReady());