Skip to content
Browse files

use camelCase for forceExpire

  • Loading branch information...
1 parent 577f00d commit c53c33a69b399e58e15ce0eae77949fe29cd036b Wanli Yang committed Mar 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 finagle-core/src/main/scala/com/twitter/finagle/service/ExpiringService.scala
View
4 finagle-core/src/main/scala/com/twitter/finagle/service/ExpiringService.scala
@@ -25,15 +25,15 @@ class ExpiringService[Req, Rep](
private[this] var idleTimeTask = maxIdleTime map { idleTime => timer.schedule(idleTime.fromNow) { maybeIdleExpire() } }
private[this] var lifeTimeTask = maxLifeTime map { lifeTime => timer.schedule(lifeTime.fromNow) { maybeLifeTimeExpire() } }
- private[this] def maybeExpire(force_expire: Boolean) = {
+ private[this] def maybeExpire(forceExpire: Boolean) = {
val justExpired = synchronized {
// We check requestCount == 0 here to avoid the race between
// cancellation & running of the timer.
if (!expired && requestCount == 0) {
expired = true
true
} else {
- if (force_expire) expired = true
+ if (forceExpire) expired = true
false
}
}

0 comments on commit c53c33a

Please sign in to comment.
Something went wrong with that request. Please try again.