Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: remove unused var from ServerTerminator #4011

Merged
merged 1 commit into from Feb 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -203,7 +203,6 @@ private[http] final class GracefulTerminatorStage(settings: ServerSettings)
// true, if a request was delivered to the user-handler, and no response was sent yet
// in that case, if the termination timeout triggers, we will need to render a synthetic response to the client.
var pendingUserHandlerResponse: Boolean = false
var pendingTerminationResponse: Boolean = false

override def preStart(): Unit = {
val terminateSignal = getAsyncCallback[FiniteDuration] { deadline =>
Expand Down Expand Up @@ -315,9 +314,6 @@ private[http] final class GracefulTerminatorStage(settings: ServerSettings)
override def onPull(): Unit = {
if (pendingUserHandlerResponse) {
if (isAvailable(fromUser)) pull(fromUser)
} else if (pendingTerminationResponse) {
pendingTerminationResponse = false
push(toNet, settings.terminationDeadlineExceededResponse)
}
}
})
Expand Down