Skip to content

Commit

Permalink
fix lint (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-haibin-lin authored Jun 26, 2017
1 parent 2727528 commit 4d4fbc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/kvstore/kvstore_dist.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,8 @@ class KVStoreDist : public KVStoreLocal {
<< " size: " << size;
}
auto vals = new ps::SArray<real_t>(data, size, false);
CHECK_NOTNULL(ps_worker_)->ZPull(pskv.keys, vals, &pskv.lens, kRowSparsePushPull, [vals, cb]() {
delete vals; cb();
});
CHECK_NOTNULL(ps_worker_)->ZPull(pskv.keys, vals, &pskv.lens, kRowSparsePushPull,
[vals, cb]() { delete vals; cb(); });
};
CHECK_NOTNULL(Engine::Get())->PushAsync(
pull_from_servers,
Expand Down Expand Up @@ -464,7 +463,6 @@ class KVStoreDist : public KVStoreLocal {
/// \brief send & recver buffer
std::unordered_map<int, NDArray> comm_buf_;
bool row_sparse_verbose_;

};

} // namespace kvstore
Expand Down
2 changes: 1 addition & 1 deletion src/kvstore/kvstore_dist_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ class KVStoreDistServer {
struct RequestBuf {
std::vector<ps::KVMeta> requests;
std::unordered_set<int> change_set;
};
};

std::unordered_map<int, NDArray> merge_buf_;
std::unordered_map<int, RequestBuf> request_buf_;
Expand Down

0 comments on commit 4d4fbc7

Please sign in to comment.