Skip to content

Commit

Permalink
handle format
Browse files Browse the repository at this point in the history
  • Loading branch information
krukonshedul committed Jun 27, 2024
1 parent 2654fab commit ffea93b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
ELIXIR_VERSION: 1.10.4 # Elixir version used during package publishing
JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
OTP_VERSION: 22.3.4.7 # OTP version used during package publishing
RELEVANT_FILES: "mix.lock mix.exs lib priv config test" # Important, this controls the caching, make sure to keep this right
RELEVANT_FILES: "benchmark config examples interop lib priv src test mix.exs mix.lock" # Important, this controls the caching, make sure to keep this right
REPOSITORY: grpc
RUNNER_OS: ubuntu20 # Must match Elixir/OTP version in described in action erlef/setup-beam@v1
SHA: ${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
ELIXIR_VERSION: 1.11.4 # Elixir version used during package publishing
JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
OTP_VERSION: 23.3.4.7 # OTP version used during package publishing
RELEVANT_FILES: "mix.lock mix.exs lib priv config test" # Important, this controls the caching, make sure to keep this right
RELEVANT_FILES: "benchmark config examples interop lib priv src test mix.exs mix.lock" # Important, this controls the caching, make sure to keep this right
REPOSITORY: grpc
RUNNER_OS: ubuntu20 # Must match Elixir/OTP version in described in action erlef/setup-beam@v1
SHA: ${{ github.sha }}
Expand Down
4 changes: 3 additions & 1 deletion examples/route_guide/lib/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ defmodule RouteGuide.Client do

Enum.each(result_enum, fn {:ok, note} ->
IO.puts(
"Got message #{note.message} at point(#{note.location.latitude}, #{note.location.longitude})"
"Got message #{note.message} at point(#{note.location.latitude}, #{
note.location.longitude
})"
)
end)
end
Expand Down
4 changes: 3 additions & 1 deletion lib/grpc/adapter/cowboy/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,9 @@ defmodule GRPC.Adapter.Cowboy.Handler do

if compressor && !Enum.member?(accepted_encodings, compressor.name()) do
msg =
"A unaccepted encoding #{compressor.name()} is set, valid are: #{:cowboy_req.header("grpc-accept-encoding", req)}"
"A unaccepted encoding #{compressor.name()} is set, valid are: #{
:cowboy_req.header("grpc-accept-encoding", req)
}"

req = send_error(req, state, msg)
{:stop, req, state}
Expand Down

0 comments on commit ffea93b

Please sign in to comment.