File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments