@@ -62,19 +62,22 @@ class KafkaHandleBase;
6262class CPPKAFKA_API Configuration : public ConfigurationBase<Configuration> {
6363public:
6464 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,
6667 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,
6870 const std::string& reason)>;
6971 using ThrottleCallback = std::function<void (KafkaHandleBase& handle,
7072 const std::string& broker_name,
7173 int32_t broker_id,
7274 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,
7477 const std::string& facility,
7578 const std::string& message)>;
7679 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 )>;
7881
7982 using ConfigurationBase<Configuration>::set;
8083 using ConfigurationBase<Configuration>::get;
0 commit comments