Forked from
asapo / asapo
820 commits behind the upstream repository.
-
George Sedov authoredGeorge Sedov authored
kafka_client_factory.cpp 317 B
#include "rdkafka_client.h"
namespace asapo {
KafkaClient* CreateKafkaClient(const KafkaClientConfig& config, Error* err) {
try {
return new RdKafkaClient(config);
}
catch (std::string errstr) {
(*err) = KafkaErrorTemplates::kGeneralError.Generate(errstr);
}
return nullptr;
}
}