Skip to content

Commit

Permalink
Merge pull request twitter#98 from ches/patch-1
Browse files Browse the repository at this point in the history
Duplicate import in Finagle server example
  • Loading branch information
lahosken committed Oct 4, 2013
2 parents ba930b0 + 3ad898f commit 8937f1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/finagle.textile
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def crawl(url: String): Future[Seq[Resource]] =
Future.collect(
page.links map { u => crawl(u) }
) map { pps => pps.flatten }
}
}

crawl("profile.html")
...hangs REPL, infinite loop...
Expand Down Expand Up @@ -517,7 +517,6 @@ import com.twitter.util.Future
import org.jboss.netty.handler.codec.http.{DefaultHttpResponse, HttpVersion, HttpResponseStatus, HttpRequest, HttpResponse}
import java.net.{SocketAddress, InetSocketAddress}
import com.twitter.finagle.builder.{Server, ServerBuilder}
import com.twitter.finagle.builder.ServerBuilder

// Define our service: OK response for root, 404 for other paths
val rootService = new Service[HttpRequest, HttpResponse] {
Expand Down

0 comments on commit 8937f1a

Please sign in to comment.