Skip to content
Snippets Groups Projects
Forked from asapo / asapo
820 commits behind the upstream repository.
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;
}
}