Skip to content

Commit

Permalink
revert code format change
Browse files Browse the repository at this point in the history
Update Http2ServerSettings.scala
  • Loading branch information
pjfanning committed Oct 29, 2023
1 parent 7f3d54d commit 4903df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,10 @@ private[http] object Http2Blueprint {
},
Flow[ByteString])

def framing(log: LoggingAdapter): BidiFlow[FrameEvent, ByteString, ByteString, FrameEvent, NotUsed] = {
def framing(log: LoggingAdapter): BidiFlow[FrameEvent, ByteString, ByteString, FrameEvent, NotUsed] =
BidiFlow.fromFlows(
Flow[FrameEvent].map(FrameRenderer.render),
Flow[ByteString].via(new Http2FrameParsing(shouldReadPreface = true, log)))
}

def framingClient(log: LoggingAdapter): BidiFlow[FrameEvent, ByteString, ByteString, FrameEvent, NotUsed] =
BidiFlow.fromFlows(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ trait Http2ServerSettings {

def getResetsThrottleInterval: Duration = Duration.ofMillis(resetsThrottleInterval.toMillis)

def withResetsThrottleInterval(interval: Duration): Http2ServerSettings = withResetsThrottleInterval(interval.toMillis.millis)
def withResetsThrottleInterval(interval: Duration): Http2ServerSettings =
withResetsThrottleInterval(interval.toMillis.millis)
}
object Http2ServerSettings extends SettingsCompanion[Http2ServerSettings] {
def create(config: Config): Http2ServerSettings = scaladsl.settings.Http2ServerSettings(config)
Expand Down

0 comments on commit 4903df0

Please sign in to comment.