Skip to content

Commit 94b5bb8

Browse files
committed
clang-format
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
1 parent e41c316 commit 94b5bb8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/everest/framework/include/utils/message_queue.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ struct Message {
2323
std::string topic; ///< The MQTT topic where this message originated from
2424
std::string payload; ///< The message payload
2525

26-
Message(const std::string& topic_, const std::string& payload_) : topic(topic_), payload(payload_) {}
26+
Message(const std::string& topic_, const std::string& payload_) : topic(topic_), payload(payload_) {
27+
}
2728
};
2829

2930
struct ParsedMessage {

lib/everest/framework/lib/mqtt_abstraction_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ void MQTTAbstractionImpl::subscribe(const std::string& topic, QOS qos) {
204204
const auto result = this->mqtt_client->subscribe(
205205
topic,
206206
[this, topic](everest::lib::io::mqtt::mosquitto_cpp& client,
207-
everest::lib::io::mqtt::mosquitto_cpp::message const& message) {
207+
everest::lib::io::mqtt::mosquitto_cpp::message const& message) {
208208
this->message_queue.add(std::make_unique<Message>(topic, message.payload));
209209
},
210210
max_qos_level);

lib/everest/io/src/mqtt/mosquitto_cpp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ ErrorCode mosquitto_cpp::connect_impl(const std::string_view& bind_address, cons
375375
if (bind_address.empty()) {
376376
return convertEC(mosquitto_connect_async(client.get(), host.data(), port, keepalive_seconds));
377377
}
378-
return convertEC(mosquitto_connect_bind_async(client.get(), host.data(), port, keepalive_seconds, bind_address.data()));
378+
return convertEC(
379+
mosquitto_connect_bind_async(client.get(), host.data(), port, keepalive_seconds, bind_address.data()));
379380
}
380381

381382
ErrorCode mosquitto_cpp::reconnect() {

0 commit comments

Comments
 (0)