Skip to content

Commit 662f7c4

Browse files
author
Adriano Santos
committed
format
1 parent bf7716a commit 662f7c4

File tree

7 files changed

+35
-36
lines changed

7 files changed

+35
-36
lines changed

grpc_client/mix.exs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ defmodule GrpcClient.MixProject do
3131
{:grpc_core, path: "../grpc_core"},
3232
{:gun, "~> 2.0"},
3333
{:mint, "~> 1.5"},
34-
{:castore, "~> 0.1 or ~> 1.0", optional: true},
34+
{:castore, "~> 0.1 or ~> 1.0", optional: true},
3535
{:ex_doc, "~> 0.39", only: [:dev, :docs], runtime: false},
3636
{:ex_parameterized, "~> 1.3.7", only: :test},
3737
{:mox, "~> 1.2", only: :test},
38-
{:grpc_server, path: "../grpc_server", only: :test},
38+
{:grpc_server, path: "../grpc_server", only: :test}
3939
]
4040
end
4141

@@ -57,7 +57,7 @@ defmodule GrpcClient.MixProject do
5757
"CHANGELOG.md",
5858
"guides/getting_started/client.md",
5959
"guides/advanced/custom_codecs.md",
60-
"guides/advanced/load_balancing.md",
60+
"guides/advanced/load_balancing.md"
6161
],
6262
groups_for_modules: [
6363
"Client Core": [
@@ -67,7 +67,7 @@ defmodule GrpcClient.MixProject do
6767
GRPC.Client.Supervisor,
6868
GRPC.Client.Connection
6969
],
70-
"Adapters": [
70+
Adapters: [
7171
GRPC.Client.Adapter,
7272
GRPC.Client.Adapters.Gun,
7373
GRPC.Client.Adapters.Mint
@@ -77,7 +77,7 @@ defmodule GrpcClient.MixProject do
7777
GRPC.Client.LoadBalancing.RoundRobin,
7878
GRPC.Client.LoadBalancing.PickFirst
7979
],
80-
"Resolvers": [
80+
Resolvers: [
8181
GRPC.Client.Resolver,
8282
GRPC.Client.Resolver.DNS,
8383
GRPC.Client.Resolver.Unix,
@@ -87,7 +87,7 @@ defmodule GrpcClient.MixProject do
8787
],
8888
groups_for_extras: [
8989
"Getting Started": ~r"^guides/getting_started/",
90-
Advanced: ~r"^guides/advanced/",
90+
Advanced: ~r"^guides/advanced/"
9191
]
9292
]
9393
end

grpc_client/test/grpc/integration/endpoint_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ defmodule GRPC.Integration.EndpointTest do
1313
defmodule HelloEndpoint do
1414
use GRPC.Endpoint
1515

16-
intercept GRPC.Server.Interceptors.Logger
17-
run HelloServer
16+
intercept(GRPC.Server.Interceptors.Logger)
17+
run(HelloServer)
1818
end
1919

2020
defmodule HelloHaltInterceptor do
@@ -51,16 +51,16 @@ defmodule GRPC.Integration.EndpointTest do
5151
defmodule FeatureEndpoint do
5252
use GRPC.Endpoint
5353

54-
intercept GRPC.Server.Interceptors.Logger
55-
run FeatureServer
54+
intercept(GRPC.Server.Interceptors.Logger)
55+
run(FeatureServer)
5656
end
5757

5858
defmodule FeatureAndHelloHaltEndpoint do
5959
use GRPC.Endpoint
6060

61-
intercept GRPC.Server.Interceptors.Logger
62-
run HelloServer, interceptors: [HelloHaltInterceptor]
63-
run FeatureServer
61+
intercept(GRPC.Server.Interceptors.Logger)
62+
run(HelloServer, interceptors: [HelloHaltInterceptor])
63+
run(FeatureServer)
6464
end
6565

6666
test "endpoint uses Logger interceptor for unary" do

grpc_client/test/grpc/integration/stream_test.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,4 @@ defmodule GRPC.StreamTest do
3333
end)
3434
end
3535
end
36-
3736
end

grpc_client/test/support/integration_data_case.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ defmodule GRPC.Integration.TestCase do
8383
:telemetry.detach(handler_id)
8484
end)
8585
end
86-
end
86+
end

grpc_client/test/support/proto/helloworld.pb.ex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ defmodule Helloworld.HelloRequest do
22
@moduledoc false
33
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
44

5-
field :name, 1, type: :string
6-
field :duration, 2, proto3_optional: true, type: :int32
5+
field(:name, 1, type: :string)
6+
field(:duration, 2, proto3_optional: true, type: :int32)
77
end
88

99
defmodule Helloworld.HelloReply do
1010
@moduledoc false
1111
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
1212

13-
field :message, 1, type: :string
13+
field(:message, 1, type: :string)
1414
end
1515

1616
defmodule Helloworld.HeaderRequest do
@@ -22,7 +22,7 @@ defmodule Helloworld.HeaderReply do
2222
@moduledoc false
2323
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
2424

25-
field :authorization, 1, type: :string
25+
field(:authorization, 1, type: :string)
2626
end
2727

2828
defmodule Helloworld.Greeter.Service do

grpc_client/test/support/proto/route_guide.pb.ex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ defmodule Routeguide.Point do
22
@moduledoc false
33
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
44

5-
field :latitude, 1, type: :int32
6-
field :longitude, 2, type: :int32
5+
field(:latitude, 1, type: :int32)
6+
field(:longitude, 2, type: :int32)
77
end
88

99
defmodule Routeguide.Rectangle do
1010
@moduledoc false
1111
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
1212

13-
field :lo, 1, type: Routeguide.Point
14-
field :hi, 2, type: Routeguide.Point
13+
field(:lo, 1, type: Routeguide.Point)
14+
field(:hi, 2, type: Routeguide.Point)
1515
end
1616

1717
defmodule Routeguide.Feature do
1818
@moduledoc false
1919
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
2020

21-
field :name, 1, type: :string
22-
field :location, 2, type: Routeguide.Point
21+
field(:name, 1, type: :string)
22+
field(:location, 2, type: Routeguide.Point)
2323
end
2424

2525
defmodule Routeguide.RouteNote do
2626
@moduledoc false
2727
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
2828

29-
field :location, 1, type: Routeguide.Point
30-
field :message, 2, type: :string
29+
field(:location, 1, type: Routeguide.Point)
30+
field(:message, 2, type: :string)
3131
end
3232

3333
defmodule Routeguide.RouteSummary do
3434
@moduledoc false
3535
use Protobuf, protoc_gen_elixir_version: "0.14.1", syntax: :proto3
3636

37-
field :point_count, 1, type: :int32, json_name: "pointCount"
38-
field :feature_count, 2, type: :int32, json_name: "featureCount"
39-
field :distance, 3, type: :int32
40-
field :elapsed_time, 4, type: :int32, json_name: "elapsedTime"
37+
field(:point_count, 1, type: :int32, json_name: "pointCount")
38+
field(:feature_count, 2, type: :int32, json_name: "featureCount")
39+
field(:distance, 3, type: :int32)
40+
field(:elapsed_time, 4, type: :int32, json_name: "elapsedTime")
4141
end
4242

4343
defmodule Routeguide.RouteGuide.Service do

grpc_client/test/support/transcode_messages.pb.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ defmodule Transcode.MessageOut do
3434
}
3535
end
3636

37-
field :response, 1, type: Transcode.Message
37+
field(:response, 1, type: Transcode.Message)
3838
end
3939

4040
defmodule Transcode.GetMessageRequest do
@@ -73,7 +73,7 @@ defmodule Transcode.GetMessageRequest do
7373
}
7474
end
7575

76-
field :name, 1, type: :string
76+
field(:name, 1, type: :string)
7777
end
7878

7979
defmodule Transcode.Message do
@@ -126,8 +126,8 @@ defmodule Transcode.Message do
126126
}
127127
end
128128

129-
field :name, 1, type: :string
130-
field :text, 2, type: :string
129+
field(:name, 1, type: :string)
130+
field(:text, 2, type: :string)
131131
end
132132

133133
defmodule Transcode.NestedMessageRequest do
@@ -166,7 +166,7 @@ defmodule Transcode.NestedMessageRequest do
166166
}
167167
end
168168

169-
field :message, 1, type: Transcode.GetMessageRequest
169+
field(:message, 1, type: Transcode.GetMessageRequest)
170170
end
171171

172172
defmodule Transcode.Messaging.Service do

0 commit comments

Comments
 (0)