Skip to content

Commit f3dc8f8

Browse files
committed
lint code
1 parent b33132e commit f3dc8f8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

include/ps/af_tensor_app.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#include <vector>
2020

2121
#include "ps/base.h"
22+
#include "ps/hash_table8.hpp"
2223
#include "ps/internal/backend.h"
2324
#include "ps/internal/utils.h"
2425
#include "ps/kv_app.h"
25-
#include "ps/hash_table8.hpp"
2626

2727
namespace ps {
2828

include/ps/internal/customer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include <utility>
1414
#include <vector>
1515

16+
#include "ps/hash_table8.hpp"
1617
#include "ps/internal/message.h"
1718
#include "ps/internal/threadsafe_queue.h"
18-
#include "ps/hash_table8.hpp"
1919
namespace ps {
2020
/**
2121
* \brief The object for communication.

src/customer.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ void Customer::WaitRequest(int timestamp, uint64_t timeout_ms) {
5454
uint64_t timeout_ns = timeout_ms * 1000000;
5555
auto* req = tracker_[timestamp];
5656
int spin_count = 0;
57-
while (req->count !=
58-
req->response_count.load(std::memory_order_acquire)) {
57+
while (req->count != req->response_count.load(std::memory_order_acquire)) {
5958
if (spin_count < kMaxSpinCount) {
6059
spin_count++;
6160
} else {
@@ -65,7 +64,10 @@ void Customer::WaitRequest(int timestamp, uint64_t timeout_ms) {
6564
if (now - req->start_time > timeout_ns) {
6665
PS_LOG(FATAL) << "request timeout " << timeout_ms << "ms, handler "
6766
<< timestamp << " " << (now - req->start_time) / 1000
68-
<< "us" << " " << req->response_count.load(std::memory_order_acquire) << " " << req->count;
67+
<< "us"
68+
<< " "
69+
<< req->response_count.load(std::memory_order_acquire)
70+
<< " " << req->count;
6971
}
7072
}
7173
}

0 commit comments

Comments
 (0)