Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
helintongh committed Mar 21, 2024
1 parent 54367f1 commit 12b752b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,8 @@ int main() {
int main() {
int max_thread_num = std::thread::hardware_concurrency();
coro_http_server server(max_thread_num, 8080);
// 打开全局令牌桶限制,该桶每s生成3个令牌,桶存储最大令牌数量为3
server.set_rate_limiter(true, 3, 3);
// ......
......
}
## 反向代理
Expand Down

0 comments on commit 12b752b

Please sign in to comment.