Skip to content

Commit c251c6c

Browse files
authored
chore: fix format (#2205)
1 parent a9b1034 commit c251c6c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Program
9898
{
9999
try
100100
{
101-
var dr = await p.ProduceAsync("test-topic", new Message<Null, string> { Value="test" });
101+
var dr = await p.ProduceAsync("test-topic", new Message<Null, string> { Value = "test" });
102102
Console.WriteLine($"Delivered '{dr.Value}' to '{dr.TopicPartitionOffset}'");
103103
}
104104
catch (ProduceException<Null, string> e)
@@ -133,7 +133,7 @@ class Program
133133

134134
using (var p = new ProducerBuilder<Null, string>(conf).Build())
135135
{
136-
for (int i=0; i<100; ++i)
136+
for (int i = 0; i < 100; ++i)
137137
{
138138
p.Produce("my-topic", new Message<Null, string> { Value = i.ToString() }, handler);
139139
}
@@ -174,7 +174,8 @@ class Program
174174

175175
CancellationTokenSource cts = new CancellationTokenSource();
176176
Console.CancelKeyPress += (_, e) => {
177-
e.Cancel = true; // prevent the process from terminating.
177+
// Prevent the process from terminating.
178+
e.Cancel = true;
178179
cts.Cancel();
179180
};
180181

0 commit comments

Comments
 (0)