Skip to content

Commit

Permalink
Merge pull request #52 from tokuhirom/thriftservice-of-doc-fix
Browse files Browse the repository at this point in the history
[doc fix] `new ThriftService` is gone. Use `ThirftService.of` instead.
  • Loading branch information
trustin committed Dec 2, 2015
2 parents 1e71f07 + 9e37cbb commit af5c48a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/site/sphinx/server-basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ You can configure an Armeria server using the fluent builder pattern, as shown b
VirtualHost vh = new VirtualHostBuilder().serviceAt(
"/hello",
new ThriftService(helloHandler, ThriftProtocolFactories.BINARY)
ThriftService.of(helloHandler, SerializationFormat.THRIFT_BINARY)
.decorate(LoggingService::new)).build();
sb.defaultVirtualHost(vh);
Expand Down Expand Up @@ -97,8 +97,8 @@ and lets you browse the available service operations and structs:
.. code-block:: java
VirtualHostBuilder vhb= new VirtualHostBuilder();
vhb.serviceAt("/foo/", new ThriftService(...))
.serviceAt("/bar/", new ThriftService(...))
vhb.serviceAt("/foo/", ThriftService.of(...))
.serviceAt("/bar/", ThriftService.of(...))
.serviceUnder("/docs/", new DocService());
Note that we used ``serviceUnder()`` for ``DocService`` unlike the other services. ``serviceUnder()`` binds
Expand Down

0 comments on commit af5c48a

Please sign in to comment.