Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Sep 6, 2024
1 parent b1cbc53 commit 2c33866
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flame/runner.ex
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ defmodule FLAME.Runner do
} = new_runner

ip_port =
if base_sync_stream && base_sync_stream.eager do
if base_sync_stream do
{:ok, listen_socket} =
:gen_tcp.listen(0, [
:binary,
Expand All @@ -323,7 +323,7 @@ defmodule FLAME.Runner do
Task.start_link(fn ->
{:ok, socket} = :gen_tcp.accept(listen_socket)
Logger.info("Sending binary over TCP")
:ok = :gen_tcp.send(socket, base_sync_stream.stream)
Enum.each(base_sync_stream.stream, fn chunk -> :ok = :gen_tcp.send(socket, chunk) end)
{:ok, _ack} = :gen_tcp.recv(socket, 0)
:gen_tcp.close(socket)
end)
Expand Down

0 comments on commit 2c33866

Please sign in to comment.