Skip to content

Commit

Permalink
Merge pull request #384 from nmreadelf/patch-1
Browse files Browse the repository at this point in the history
Added operator= for PeerId
  • Loading branch information
chenzhangyi authored Feb 14, 2023
2 parents bc527db + e6d8f88 commit 99a12e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/braft/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ struct PeerId {
snprintf(str, sizeof(str), "%s:%d", butil::endpoint2str(addr).c_str(), idx);
return std::string(str);
}

PeerId& operator=(const PeerId& rhs) = default;
};

inline bool operator<(const PeerId& id1, const PeerId& id2) {
Expand Down

0 comments on commit 99a12e0

Please sign in to comment.