No commit without a formatting follwup
This commit is contained in:
parent
6eb1a9e1ef
commit
411a11dd9d
2 changed files with 2 additions and 5 deletions
|
|
@ -30,8 +30,7 @@ public class Throttle {
|
|||
int framesPerSecond = 24;
|
||||
|
||||
Source<Frame, NotUsed> videoThrottling =
|
||||
frameSource.throttle(
|
||||
framesPerSecond, Duration.ofSeconds(1));
|
||||
frameSource.throttle(framesPerSecond, Duration.ofSeconds(1));
|
||||
// serialize `Frame` and send over the network.
|
||||
// #throttle
|
||||
|
||||
|
|
|
|||
|
|
@ -26,9 +26,7 @@ object Throttle extends App {
|
|||
val framesPerSecond = 24
|
||||
|
||||
// val frameSource: Source[Frame,_]
|
||||
val videoThrottling = frameSource.throttle(
|
||||
framesPerSecond,
|
||||
1.second)
|
||||
val videoThrottling = frameSource.throttle(framesPerSecond, 1.second)
|
||||
// serialize `Frame` and send over the network.
|
||||
// #throttle
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue