Skip to content

Commit

Permalink
Remove duplicate validation
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhbhatia-stripe committed Oct 8, 2024
1 parent b3a45df commit 04ce070
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/smokescreen/smokescreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,6 @@ func StartWithConfig(config *Config, quit <-chan interface{}) {
server.IdleTimeout = config.IdleTimeout
}

if config.RejectResponseHandler != nil && config.RejectResponseHandlerWithCtx != nil {
config.Log.Fatal("RejectResponseHandler and RejectResponseHandlerWithCtx cannot be set simultaneously")
}

config.MetricsClient.SetStarted()
config.ShuttingDown.Store(false)
runServer(config, &server, listener, quit)
Expand Down

0 comments on commit 04ce070

Please sign in to comment.