Skip to content

Commit 5fc70b4

Browse files
committed
fix: correct struct syntax
1 parent f9d4231 commit 5fc70b4

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)