File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed
Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 2929#include < sys/time.h>
3030#include < thrift/protocol/TDebugProtocol.h>
3131
32+ #include < algorithm>
3233#include < cstdint>
3334#include < cstdlib>
3435#include < ctime>
35- #include < algorithm>
3636#include < functional>
3737#include < future>
3838#include < sstream>
Original file line number Diff line number Diff line change @@ -32,10 +32,7 @@ namespace doris {
3232
3333class HttpHandler ;
3434
35- enum SendReplyType {
36- REPLY_SYNC = 0 ,
37- REPLY_ASYNC = 1
38- };
35+ enum SendReplyType { REPLY_SYNC = 0 , REPLY_ASYNC = 1 };
3936
4037class HttpRequest {
4138public:
@@ -84,13 +81,9 @@ class HttpRequest {
8481
8582 const char * remote_host () const ;
8683
87- void mark_send_reply (SendReplyType type = REPLY_ASYNC) {
88- _send_reply_type = type;
89- }
84+ void mark_send_reply (SendReplyType type = REPLY_ASYNC) { _send_reply_type = type; }
9085
91- void finish_send_reply () {
92- promise.set_value (true );
93- }
86+ void finish_send_reply () { promise.set_value (true ); }
9487
9588 void wait_finish_send_reply () {
9689 if (_send_reply_type == REPLY_SYNC) {
You can’t perform that action at this time.
0 commit comments