Skip to content

Commit

Permalink
Fix #265 (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers authored Oct 18, 2023
1 parent bfe14a8 commit 4d82682
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/KNetCompactedReplicatorTest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static void TestValues(string topicName, int length, UpdateModeTypes typ
UpdateMode = type,
BootstrapServers = serverToUse,
StateName = topicName,
ValueSerDes = new JsonSerDes<TestType>(),
ValueSerDes = new JsonSerDes.Value<TestType>(),
})
{
replicator.StartAndWait();
Expand Down Expand Up @@ -130,7 +130,7 @@ private static void Test(string topicName, int length, UpdateModeTypes type, int
UpdateMode = type,
BootstrapServers = serverToUse,
StateName = topicName,
ValueSerDes = new JsonSerDes<TestType>(),
ValueSerDes = new JsonSerDes.Value<TestType>(),
})
{
replicator.StartAndWait();
Expand Down Expand Up @@ -158,7 +158,7 @@ private static void TestOnlyRead(string topicName, int length, UpdateModeTypes t
UpdateMode = type,
BootstrapServers = serverToUse,
StateName = topicName,
ValueSerDes = new JsonSerDes<TestType>(),
ValueSerDes = new JsonSerDes.Value<TestType>(),
})
{
replicator.StartAndWait();
Expand Down
4 changes: 2 additions & 2 deletions tests/KNetTest/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static void ProduceSomething()
.ToProperties();

KNetSerDes<string> keySerializer = new KNetSerDes<string>();
JsonSerDes<TestType> valueSerializer = new JsonSerDes<TestType>();
JsonSerDes.Value<TestType> valueSerializer = new JsonSerDes.Value<TestType>();
try
{
using (var producer = new KNetProducer<string, TestType>(props, keySerializer, valueSerializer))
Expand Down Expand Up @@ -248,7 +248,7 @@ static void ConsumeSomething()
.ToProperties();

KNetSerDes<string> keyDeserializer = new KNetSerDes<string>();
KNetSerDes<TestType> valueDeserializer = new JsonSerDes<TestType>();
KNetSerDes<TestType> valueDeserializer = new JsonSerDes.Value<TestType>();
ConsumerRebalanceListener rebalanceListener = null;
KNetConsumer<string, TestType> consumer = null;

Expand Down

0 comments on commit 4d82682

Please sign in to comment.