replace unicode arrows
* ⇒, →, ← * because we don't want to show them in documentation snippets and then it's complicated to avoid that when snippets are located in src/test/scala in individual modules * dont replace object `→` in FSM.scala and PersistentFSM.scala
This commit is contained in:
parent
e4d38f92a4
commit
5c96a5f556
1521 changed files with 18846 additions and 18786 deletions
|
|
@ -27,7 +27,7 @@ import scala.concurrent.duration.{ FiniteDuration, _ }
|
|||
val cost: Int,
|
||||
val per: FiniteDuration,
|
||||
val maximumBurst: Int,
|
||||
val costCalculation: (T) ⇒ Int,
|
||||
val costCalculation: (T) => Int,
|
||||
val mode: ThrottleMode)
|
||||
extends SimpleLinearGraphStage[T] {
|
||||
require(cost > 0, "cost must be > 0")
|
||||
|
|
@ -53,8 +53,8 @@ import scala.concurrent.duration.{ FiniteDuration, _ }
|
|||
var willStop = false
|
||||
var currentElement: T = _
|
||||
val enforcing = mode match {
|
||||
case Enforcing ⇒ true
|
||||
case Shaping ⇒ false
|
||||
case Enforcing => true
|
||||
case Shaping => false
|
||||
}
|
||||
|
||||
override def preStart(): Unit = tokenBucket.init()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue