mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 11:51:44 +02:00
Reformat code
This commit is contained in:
parent
c6518a4709
commit
e1c8250876
32 changed files with 505 additions and 351 deletions
|
@ -117,7 +117,9 @@ public:
|
|||
template <typename Message>
|
||||
void sendRequest(const msg::message_ptr& message, const chronos::usec& timeout, const MessageHandler<Message>& handler)
|
||||
{
|
||||
sendRequest(message, timeout, [handler](const boost::system::error_code& ec, std::unique_ptr<msg::BaseMessage> response) {
|
||||
sendRequest(message, timeout,
|
||||
[handler](const boost::system::error_code& ec, std::unique_ptr<msg::BaseMessage> response)
|
||||
{
|
||||
if (ec)
|
||||
handler(ec, nullptr);
|
||||
else if (auto casted_response = msg::message_cast<Message>(std::move(response)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue