File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3333
3434using json = nlohmann::ordered_json;
3535
36- constexpr int HTTP_POOLING_SECONDS = 1 ;
36+ constexpr int HTTP_POLLING_SECONDS = 1 ;
3737
3838enum 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);
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments