Skip to content

Commit 4c853dc

Browse files
authored
Update push-pull.md
the original example which uses a pull socket to send a frame will return an error since the pull socket does not have such function
1 parent 7c86f95 commit 4c853dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docs/push-pull.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ namespace Ventilator
3535
// Sends batch of tasks to workers via that socket
3636
Console.WriteLine("====== VENTILATOR ======");
3737
using (var sender = new PushSocket("@tcp://*:5557"))
38-
using (var sink = new PullSocket(">tcp://localhost:5558"))
3938
{
4039
Console.WriteLine("Press enter when worker are ready");
4140
Console.ReadLine();
4241
//the first message it "0" and signals start of batch
4342
//see the Sink.csproj Program.cs file for where this is used
4443
Console.WriteLine("Sending start of batch to Sink");
45-
sink.SendFrame("0");
44+
sender.SendFrame("0");
4645
Console.WriteLine("Sending tasks to workers");
4746
//initialise random number generator
4847
Random rand = new Random(0);

0 commit comments

Comments
 (0)