Skip to content

Commit

Permalink
fix: Deprecate Message::Close because it is really a dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisklein authored and rbx committed Oct 19, 2021
1 parent 7329cb4 commit b8503bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fairmq/Socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ struct Socket
virtual int64_t Send(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0;
virtual int64_t Receive(std::vector<std::unique_ptr<Message>>& msgVec, int timeout = -1) = 0;

[[deprecated("Use Socket::~Socket() instead.")]]
virtual void Close() = 0;

virtual void SetOption(const std::string& option, const void* value, size_t valueSize) = 0;
Expand Down

0 comments on commit b8503bf

Please sign in to comment.