Fix build

This commit is contained in:
Kruglov Pavel 2022-10-29 00:02:44 +02:00 committed by GitHub
parent 781a27edb3
commit 32c2fb378f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ void NATSProducer::publishThreadFunc(void * arg)
if (!pop_result)
throw Exception(ErrorCodes::LOGICAL_ERROR, "Could not pop payload");
status = natsConnection_Publish(producer->connection.getConnection(), producer->subject.c_str(), payload.c_str(), payload.size());
status = natsConnection_Publish(producer->connection.getConnection(), producer->subject.c_str(), payload.c_str(), static_cast<int>(payload.size()));
if (status != NATS_OK)
{