Skip to content

Commit bdc22d6

Browse files
committed
fix typo
1 parent 8ebe9b2 commit bdc22d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/server/server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
using json = nlohmann::ordered_json;
3535

36-
constexpr int HTTP_POOLING_SECONDS = 1;
36+
constexpr int HTTP_POLLING_SECONDS = 1;
3737

3838
enum stop_type {
3939
STOP_TYPE_NONE,
@@ -2353,7 +2353,7 @@ struct server_context {
23532353
const std::function<bool()> & is_connection_closed) {
23542354
std::vector<server_task_result_ptr> results(id_tasks.size());
23552355
for (size_t i = 0; i < id_tasks.size(); i++) {
2356-
server_task_result_ptr result = queue_results.recv_with_timeout(id_tasks, HTTP_POOLING_SECONDS);
2356+
server_task_result_ptr result = queue_results.recv_with_timeout(id_tasks, HTTP_POLLING_SECONDS);
23572357

23582358
if (is_connection_closed()) {
23592359
cancel_tasks(id_tasks);
@@ -2391,7 +2391,7 @@ struct server_context {
23912391
const std::function<bool()> & is_connection_closed) {
23922392
size_t n_finished = 0;
23932393
while (true) {
2394-
server_task_result_ptr result = queue_results.recv_with_timeout(id_tasks, HTTP_POOLING_SECONDS);
2394+
server_task_result_ptr result = queue_results.recv_with_timeout(id_tasks, HTTP_POLLING_SECONDS);
23952395

23962396
if (is_connection_closed()) {
23972397
cancel_tasks(id_tasks);

examples/server/tests/unit/test_completion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,6 @@ def test_cancel_request():
423423
except requests.exceptions.ReadTimeout:
424424
pass # expected
425425
# make sure the slot is free
426-
time.sleep(1) # wait for HTTP_POOLING_SECONDS
426+
time.sleep(1) # wait for HTTP_POLLING_SECONDS
427427
res = server.make_request("GET", "/slots")
428428
assert res.body[0]["is_processing"] == False

0 commit comments

Comments
 (0)