Correcting type info in thrift_processor state record
Client: Erlang
The 'support for Multiplexing Services' changed so that the processor could
be initiated with a multiplexed map wrapper.
https://github.com/apache/thrift/commit/ae971ce
Fixes dialyzer warnings in src/thrift_processor.erl
Line 52 Column 31: Guard test is_list(HandlerModules::atom()) can never succ...
Line 66 Column 87: The call thrift_multiplexed_map_wrapper:fetch(ServiceName...
Signed-off-by: Björn Svensson <bjorn.a.svensson@est.tech>
diff --git a/lib/erl/src/thrift_processor.erl b/lib/erl/src/thrift_processor.erl
index e17eadb..8d94e8e 100644
--- a/lib/erl/src/thrift_processor.erl
+++ b/lib/erl/src/thrift_processor.erl
@@ -25,9 +25,9 @@
-include("thrift_protocol.hrl").
-record(thrift_processor, {
- handler :: module(),
+ handler :: module() | thrift_multiplexed_map_wrapper:service_handler_map(),
protocol :: term(),
- service :: atom()
+ service :: atom() | thrift_multiplexed_map_wrapper:service_handler_map()
}).
init({_Server, ProtoGen, Service, Handler}) when is_function(ProtoGen, 0) ->