erlang: Make the test_server use thrift_socket_server
authorDavid Reiss <dreiss@apache.org>
Mon, 30 Aug 2010 22:05:17 +0000 (22:05 +0000)
committerDavid Reiss <dreiss@apache.org>
Mon, 30 Aug 2010 22:05:17 +0000 (22:05 +0000)
thrift_server is deprecated, it seems.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990971 13f79535-47bb-0310-9956-ffa450edef68

test/erl/src/test_server.erl

index 134c7cb..6797dd8 100644 (file)
@@ -24,7 +24,9 @@
 -include("thriftTest_types.hrl").
 
 start_link(Port) ->
-    thrift_server:start_link(Port, thriftTest_thrift, ?MODULE).
+    thrift_socket_server:start([{handler, ?MODULE},
+                                {service, thriftTest_thrift},
+                                {port, Port}]).
 
 
 handle_function(testVoid, {}) ->