You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by bl...@apache.org on 2021/03/30 11:54:10 UTC
[pulsar-dotpulsar] branch master updated: Fixed issue with
producing with schema to non existing topic (#70)
This is an automated email from the ASF dual-hosted git repository.
blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 25a458e Fixed issue with producing with schema to non existing topic (#70)
25a458e is described below
commit 25a458e2b5c94cbf0a2c6cdeefdcbc75d09cd93d
Author: Kristian Andersen <ka...@users.noreply.github.com>
AuthorDate: Tue Mar 30 13:53:25 2021 +0200
Fixed issue with producing with schema to non existing topic (#70)
Thanks! :-)
---
src/DotPulsar/Internal/ProducerChannelFactory.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/DotPulsar/Internal/ProducerChannelFactory.cs b/src/DotPulsar/Internal/ProducerChannelFactory.cs
index 7d9a1ac..57fd701 100644
--- a/src/DotPulsar/Internal/ProducerChannelFactory.cs
+++ b/src/DotPulsar/Internal/ProducerChannelFactory.cs
@@ -56,9 +56,9 @@ namespace DotPulsar.Internal
public async Task<IProducerChannel> Create(CancellationToken cancellationToken)
{
var connection = await _connectionPool.FindConnectionForTopic(_commandProducer.Topic, cancellationToken).ConfigureAwait(false);
- var schemaVersion = await GetSchemaVersion(connection, cancellationToken).ConfigureAwait(false);
var channel = new Channel(_correlationId, _eventRegister, new AsyncQueue<MessagePackage>());
var response = await connection.Send(_commandProducer, channel, cancellationToken).ConfigureAwait(false);
+ var schemaVersion = await GetSchemaVersion(connection, cancellationToken).ConfigureAwait(false);
return new ProducerChannel(response.ProducerId, response.ProducerName, connection, _compressorFactory, schemaVersion);
}