          ) do
       {:ok, next_piece_index} ->
         next_sub_piece_index = 0
-        Logger.debug(fn -> "attempting to get #{next_piece_index}:#{next_sub_piece_index}" end)
+
+        Logger.debug(fn ->
+          "attempting to get #{next_piece_index}:#{next_sub_piece_index}"
+        end)
+
         msg2 =
           PeerProtocol.encode(:request, next_piece_index, next_sub_piece_index)
 

  require Bitwise
  require Logger
  require IEx
  alias BittorrentClient.Peer.Data, as: PeerData
  alias BittorrentClient.Peer.TorrentTrackingInfo, as: TorrentTrackingInfo
  alias BittorrentClient.Peer.Protocol, as: PeerProtocol

    {msgs, _} = PeerProtocol.decode(msg)
    {a_pd} = peer_data

    Logger.debug( "Messages #{inspect msgs} for #{inspect peer_data.peer_id}")
    ret = loop_msgs(msgs, socket, a_pd)
    # Logger.debug( "Returning this: #{inspect ret}")
    {:noreply, {ret}}
