Skip to content

Commit

Permalink
Merge pull request #383 from snowAvocado/merge-engine-to-server
Browse files Browse the repository at this point in the history
Merge Engine with Server
  • Loading branch information
mostafa authored Dec 24, 2023
2 parents 23dea16 + 214afaf commit 890d562
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 161 deletions.
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func StopGracefully(
}
for name, server := range servers {
logger.Info().Str("name", name).Msg("Stopping server")
server.Shutdown() //nolint:contextcheck
server.Shutdown()
span.AddEvent("Stopped server")
}
logger.Info().Msg("Stopped all servers")
Expand Down
1 change: 0 additions & 1 deletion config/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const (
DefaultTCPKeepAliveDuration = 3 * time.Second
DefaultLoadBalancer = "roundrobin"
DefaultTCPNoDelay = true
DefaultEngineStopTimeout = 5 * time.Second
DefaultHandshakeTimeout = 5 * time.Second

// Utility constants.
Expand Down
76 changes: 0 additions & 76 deletions network/engine.go

This file was deleted.

49 changes: 0 additions & 49 deletions network/engine_test.go

This file was deleted.

Loading

0 comments on commit 890d562

Please sign in to comment.