Skip to content

Commit

Permalink
BE: fix erlang_service_server request() type
Browse files Browse the repository at this point in the history
Summary: Add the missing extra data to the `request()` type. Without this Eqwalizer is unable to process the relevant `handle_cast` clause.

Reviewed By: michalmuskala

Differential Revision: D54683950

fbshipit-source-id: ece0816070dd9a337f03207e65dba75cec7255f1
  • Loading branch information
alanz authored and facebook-github-bot committed Mar 11, 2024
1 parent 134982f commit 86b0213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erlang_service/src/erlang_service_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
%%==============================================================================
-type state() :: #{io := pid(), requests := [request_entry()]}.
-type request_entry() :: {pid(), id(), reference() | infinity}.
-type request() :: {request, request_type(), id(), data()}.
-type request() :: {request, request_type(), id(), data(), [any()]}.
-type result() :: {result, id(), [segment()]}.
-type exception() :: {exception, id(), any()}.
-type id() :: binary().
Expand Down

0 comments on commit 86b0213

Please sign in to comment.