Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
eaba committed Mar 11, 2023
1 parent b87f1ec commit d3386fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/SharpPulsar.Test/ZeroQueueSizeTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public async Task ZeroQueueSizeNormalConsumer()
receivedMessages.Add(1);
_output.WriteLine($"Consumer received : {receivedMessages.Count}, {r}");
}
catch
catch(Exception ex)
{
_output.WriteLine("Consumer received : " + ex.ToString());
}
Expand Down
4 changes: 2 additions & 2 deletions src/SharpPulsar/Interfaces/ISchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static ISchema<O> Avro<O>(ISchemaDefinition<O> schemaDefinition)
/// </summary>
/// <param name="pojo"> the POJO class to be used to extract the JSON schema </param>
/// <returns> a Schema instance </returns>
static ISchema<T> Json(Type pojo)
static ISchema<T> Json<T>(Type pojo)
{
return DefaultImplementation.NewJsonSchema(ISchemaDefinition<T>.Builder().WithPojo(pojo).Build());
}
Expand All @@ -247,7 +247,7 @@ static ISchema<T> Json(Type pojo)
/// </summary>
/// <param name="schemaDefinition"> the definition of the schema </param>
/// <returns> a Schema instance </returns>
static ISchema<T> Json(ISchemaDefinition<T> schemaDefinition)
static ISchema<T> Json<T>(ISchemaDefinition<T> schemaDefinition)
{
return DefaultImplementation.NewJsonSchema(schemaDefinition);
}
Expand Down
2 changes: 1 addition & 1 deletion src/SharpPulsar/PartitionedProducerActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ public async ValueTask OnTopicsExtended(ICollection<string> topicsExtended)
throw new PulsarClientException.NotSupportedException("not support shrink topic partitions");
}
}
catch
catch (Exception ex)
{
_outerInstance._log.Error($"[{_outerInstance.Topic}] Auto getting partitions failed { ex}");
throw;
Expand Down
1 change: 1 addition & 0 deletions src/SharpPulsar/TopicListWatcherActor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ internal class TopicListWatcherActor : ReceiveActor, IWithUnboundedStash
private readonly IActorRef _connectionHandler;
private readonly IActorRef _self;
private IActorRef _cnx;
private readonly TimeSpan _lookupDeadline;
private readonly Collection<Exception> _previousExceptions = new Collection<Exception>();
private readonly string _name;
private readonly string _topicsPattern;
Expand Down

0 comments on commit d3386fe

Please sign in to comment.