Skip to content

Commit ca9eeee

Browse files
committed
Minor update.
1 parent 7f1434b commit ca9eeee

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

core/src/main/scala/org/apache/spark/network/netty/FileClientHandler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ abstract class FileClientHandler extends SimpleChannelInboundHandler[ByteBuf] {
4444
handle(ctx, in, currentHeader)
4545
handlerCalled = true
4646
currentHeader = null
47-
ctx.close
47+
ctx.close()
4848
}
4949
}
5050
}

core/src/main/scala/org/apache/spark/network/netty/FileHeader.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private[spark] class FileHeader (
2626
val fileLen: Int,
2727
val blockId: BlockId) extends Logging {
2828

29-
lazy val buffer = {
29+
lazy val buffer: ByteBuf = {
3030
val buf = Unpooled.buffer()
3131
buf.capacity(FileHeader.HEADER_SIZE)
3232
buf.writeInt(fileLen)

core/src/main/scala/org/apache/spark/network/netty/FileServer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ package org.apache.spark.network.netty
2020
import java.net.InetSocketAddress
2121

2222
import io.netty.bootstrap.ServerBootstrap
23-
import io.netty.channel.{ChannelOption, EventLoopGroup}
23+
import io.netty.channel.{ChannelFuture, ChannelOption, EventLoopGroup}
2424
import io.netty.channel.oio.OioEventLoopGroup
2525
import io.netty.channel.socket.oio.OioServerSocketChannel
2626

@@ -35,7 +35,7 @@ class FileServer(pResolver: PathResolver, private var port: Int) extends Logging
3535
private var bossGroup: EventLoopGroup = new OioEventLoopGroup
3636
private var workerGroup: EventLoopGroup = new OioEventLoopGroup
3737

38-
private var channelFuture = {
38+
private var channelFuture: ChannelFuture = {
3939
val bootstrap = new ServerBootstrap
4040
bootstrap.group(bossGroup, workerGroup)
4141
.channel(classOf[OioServerSocketChannel])

core/src/main/scala/org/apache/spark/network/netty/FileServerHandler.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,3 @@ class FileServerHandler(pResolver: PathResolver)
6666
ctx.close()
6767
}
6868
}
69-

0 commit comments

Comments
 (0)