Skip to content

Commit

Permalink
Merge pull request #6 from ForestLH/style/clang
Browse files Browse the repository at this point in the history
style:format codes
  • Loading branch information
ForestLH authored May 26, 2023
2 parents 6bc870c + 3624335 commit cb7238a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions src/net/include/thread_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ class ThreadPool : public pstd::noncopyable {
void cur_time_queue_size(size_t* qsize);
std::string thread_pool_name();

/*
* No allowed copy and copy assign
*/
ThreadPool(const ThreadPool&);
void operator=(const ThreadPool&);

private:
void runInThread();
Expand Down
2 changes: 1 addition & 1 deletion src/net/src/client_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Status ClientThread::ScheduleConnect(const std::string& dst_ip, int dst_port) {
hints.ai_socktype = SOCK_STREAM;

// We do not handle IPv6
if (rv = getaddrinfo(dst_ip.c_str(), cport, &hints, &servinfo)) {
if (rv = getaddrinfo(dst_ip.c_str(), cport, &hints, &servinfo); rv) {
return Status::IOError("connect getaddrinfo error for ", dst_ip);
}
for (p = servinfo; p != nullptr; p = p->ai_next) {
Expand Down
1 change: 0 additions & 1 deletion src/pika_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
using pstd::Status;

extern PikaServer* g_pika_server;
extern std::unique_ptr<PikaConf> g_pika_conf;
extern std::unique_ptr<PikaReplicaManager> g_pika_rm;

static std::string ConstructPinginPubSubResp(const PikaCmdArgsType& argv) {
Expand Down
1 change: 0 additions & 1 deletion src/pika_stable_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

using pstd::Status;

extern std::unique_ptr<PikaConf> g_pika_conf;
extern PikaServer* g_pika_server;
extern std::unique_ptr<PikaReplicaManager> g_pika_rm;

Expand Down

0 comments on commit cb7238a

Please sign in to comment.