@@ -62,19 +62,22 @@ class KafkaHandleBase;
62
62
class CPPKAFKA_API Configuration : public ConfigurationBase<Configuration> {
63
63
public:
64
64
using DeliveryReportCallback = std::function<void (Producer& producer, const Message&)>;
65
- using OffsetCommitCallback = std::function<void (Consumer& consumer, Error,
65
+ using OffsetCommitCallback = std::function<void (Consumer& consumer,
66
+ Error error,
66
67
const TopicPartitionList& topic_partitions)>;
67
- using ErrorCallback = std::function<void (KafkaHandleBase& handle, int error,
68
+ using ErrorCallback = std::function<void (KafkaHandleBase& handle,
69
+ int error,
68
70
const std::string& reason)>;
69
71
using ThrottleCallback = std::function<void (KafkaHandleBase& handle,
70
72
const std::string& broker_name,
71
73
int32_t broker_id,
72
74
std::chrono::milliseconds throttle_time)>;
73
- using LogCallback = std::function<void (KafkaHandleBase& handle, int level,
75
+ using LogCallback = std::function<void (KafkaHandleBase& handle,
76
+ int level,
74
77
const std::string& facility,
75
78
const std::string& message)>;
76
79
using StatsCallback = std::function<void (KafkaHandleBase& handle, const std::string& json)>;
77
- using SocketCallback = std::function<int (int domain, int type, int protoco )>;
80
+ using SocketCallback = std::function<int (int domain, int type, int protocol )>;
78
81
79
82
using ConfigurationBase<Configuration>::set;
80
83
using ConfigurationBase<Configuration>::get;
0 commit comments