Permalink
Browse files

Merge branch 'master' of github.com:twitter/finagle

  • Loading branch information...
wilhelm bierbaum
wilhelm bierbaum committed Feb 11, 2011
2 parents e98cf6b + af831fa commit c109669e7236a4767b31c5be6c7e91e1ef6af3d5
Showing with 2 additions and 5 deletions.
  1. +2 −5 finagle-core/src/main/scala/com/twitter/finagle/builder/ServerBuilder.scala
@@ -25,7 +25,7 @@ import com.twitter.util.{Future, Promise, Return, Throw}
import channel.{ChannelClosingHandler, ServiceToChannelHandler, ChannelSemaphoreHandler}
import service.{ExpiringService, TimeoutFilter, StatsFilter}
-import stats.{StatsReceiver}
+import stats.StatsReceiver
trait Server {
/**
@@ -183,7 +183,7 @@ case class ServerBuilder[Req, Rep](
// Add the (shared) queueing handler *after* request
// serialization as it assumes one outstanding request per
// channel.
- queueingChannelHandler foreach { pipeline.addFirst("queue", _) }
+ queueingChannelHandler foreach { pipeline.addLast("queue", _) }
// Compose the service stack.
var service = codec.wrapServerChannel(serviceFactory())
@@ -217,9 +217,6 @@ case class ServerBuilder[Req, Rep](
// drain. We close the socket but wait for all handlers to
// complete (to drain them individually.) Note: this would be
// complicated by the presence of pipelining.
-
- // serialize requests?
-
val channelHandler = new ServiceToChannelHandler(service)
val handle = new ChannelHandle {

0 comments on commit c109669

Please sign in to comment.