Skip to content

Commit 517cc9f

Browse files
committed
Merge pull request #135 from manjuraj/master
mixing Router with Twitter App creates exitTimer thread per request
2 parents 7b6148c + cf3b9b8 commit 517cc9f

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name := "finatra"
22

33
organization := "com.twitter"
44

5-
version := "1.5.3"
5+
version := "1.5.4-SNAPSHOT"
66

77
scalaVersion := "2.10.3"
88

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.twitter</groupId>
55
<artifactId>finatra</artifactId>
6-
<version>1.5.3</version>
6+
<version>1.5.4-SNAPSHOT</version>
77
<name>${project.artifactId}</name>
88
<description>Sinatra clone on top of finagle-http</description>
99
<inceptionYear>2012</inceptionYear>

src/main/scala/com/twitter/finatra/Controller.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class Controller extends App with Logging with Stats {
4646

4747
val stats = statsReceiver.scope("Controller")
4848

49-
def render: ResponseBuilder = new ResponseBuilder
50-
def route: Router = new Router(this)
49+
def render: ResponseBuilder = new ResponseBuilder
50+
def route: Router = new Router(this)
5151

5252
def redirect(location: String, message: String = "", permanent: Boolean = false): ResponseBuilder = {
5353
val msg = if (message == "")

src/main/scala/com/twitter/finatra/Router.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import com.twitter.util.Future
88
import com.twitter.app.App
99
import org.jboss.netty.util.CharsetUtil
1010

11-
class Router(controller: Controller) extends App with Logging {
11+
class Router(controller: Controller) {
1212

1313
def dispatch(request: FinagleRequest): Option[Future[FinagleResponse]] = {
1414
dispatchRouteOrCallback(request, request.method, (request) => {

0 commit comments

Comments
 (0)