Skip to content

Commit be29a7e

Browse files
author
caojunhui
committed
reformat
1 parent c74b6d5 commit be29a7e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

be/src/http/action/stream_load.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
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>

be/src/http/http_request.h

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ namespace doris {
3232

3333
class HttpHandler;
3434

35-
enum SendReplyType {
36-
REPLY_SYNC = 0,
37-
REPLY_ASYNC = 1
38-
};
35+
enum SendReplyType { REPLY_SYNC = 0, REPLY_ASYNC = 1 };
3936

4037
class HttpRequest {
4138
public:
@@ -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) {

0 commit comments

Comments
 (0)