Skip to content

Commit 308c1ff

Browse files
committed
delete commented code
1 parent 614aa22 commit 308c1ff

File tree

1 file changed

+0
-27
lines changed

1 file changed

+0
-27
lines changed

lib/phoenix/sync/electric/client_adapter.ex

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -71,32 +71,5 @@ defmodule Phoenix.Sync.Electric.ClientAdapter do
7171
end)
7272
end)
7373
end
74-
75-
# defp interruption_response(%Client.Fetch.Request{params: params}) do
76-
# cursor =
77-
# case Map.get(params, "cursor", nil) do
78-
# nil -> nil
79-
# val -> String.to_integer(val)
80-
# end
81-
#
82-
# %Client.Fetch.Response{
83-
# status: 200,
84-
# headers: %{
85-
# # Construct a non-cachable response to make the client reconnect again
86-
# # on the same URL. This avoids guessing the cache config. The subsequent
87-
# # response will replace the response in the shared and browser cache.
88-
# "cache-control" => "no-cache, no-store, must-revalidate, max-age=0",
89-
# "content-type" => "application/json",
90-
# "electric-cursor" => cursor,
91-
# "electric-handle" => Map.fetch!(params, "handle"),
92-
# "electric-offset" => Map.fetch!(params, "offset"),
93-
# "expires" => "0",
94-
# "pragma" => "no-cache",
95-
# "sync-interrupted" => "true"
96-
# },
97-
# body: [],
98-
# request_timestamp: DateTime.utc_now()
99-
# }
100-
# end
10174
end
10275
end

0 commit comments

Comments
 (0)