Skip to content

Commit

Permalink
Line break caused Scala to interpret NioServerSocketChannelFactory co…
Browse files Browse the repository at this point in the history
…nstructor as the no-arg version, which is not even present in some versions of Netty
  • Loading branch information
srowen committed Jul 17, 2014
1 parent 632fb3d commit 59c3501
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,15 @@ class FlumeReceiver(

private def initServer() = {
if (enableDecompression) {
val channelFactory = new NioServerSocketChannelFactory
(Executors.newCachedThreadPool(), Executors.newCachedThreadPool());
val channelPipelieFactory = new CompressionChannelPipelineFactory()
val channelFactory = new NioServerSocketChannelFactory(Executors.newCachedThreadPool(),
Executors.newCachedThreadPool())
val channelPipelineFactory = new CompressionChannelPipelineFactory()

new NettyServer(
responder,
new InetSocketAddress(host, port),
channelFactory,
channelPipelieFactory,
channelFactory,
channelPipelineFactory,
null)
} else {
new NettyServer(responder, new InetSocketAddress(host, port))
Expand Down

0 comments on commit 59c3501

Please sign in to comment.