Skip to content

Commit d05739a

Browse files
sleipnirAdriano Santos
andauthored
Fix/docs struct (#459)
* chore: release new version * bump 0.10.2 -> 0.11.0 * fix: correct struct syntax --------- Co-authored-by: Adriano Santos <adriano.santos@v3.com.br>
1 parent fde44f4 commit d05739a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/getting_started/stream.livemd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ IO.puts("Streaming gRPC Server running on :50054")
177177
{:ok, reply} =
178178
Stream.EchoServer.Stub.say_unary_hello(
179179
channel,
180-
Stream.HelloRequest{name: "Unary Test"}
180+
%Stream.HelloRequest{name: "Unary Test"}
181181
)
182182

183183
IO.inspect(reply, label: "Unary reply")
@@ -191,7 +191,7 @@ IO.inspect(reply, label: "Unary reply")
191191
{:ok, stream} =
192192
Stream.EchoServer.Stub.say_server_hello(
193193
channel,
194-
Stream.HelloRequest{name: "Server Stream"}
194+
%Stream.HelloRequest{name: "Server Stream"}
195195
)
196196

197197
Enum.each(stream, fn msg ->
@@ -211,7 +211,7 @@ end)
211211
Enum.each(~w(Alice Bob Carol)a, fn name ->
212212
GRPC.Stub.send_request(
213213
bidi_stream,
214-
Stream.HelloRequest{name: name}
214+
%Stream.HelloRequest{name: name}
215215
)
216216
Process.sleep(150)
217217
end)

0 commit comments

Comments
 (0)