Skip to content

Commit

Permalink
Rename stopAllServers
Browse files Browse the repository at this point in the history
Signed-off-by: rodneyosodo <[email protected]>
  • Loading branch information
rodneyosodo committed Jul 25, 2023
1 parent a1b4a21 commit 9484a44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type BaseServer struct {
Protocol string
}

func stopAllServer(servers ...Server) error {
func stopAllServers(servers ...Server) error {
var errs []error
for _, server := range servers {
if err := server.Stop(); err != nil {
Expand All @@ -54,7 +54,7 @@ func StopHandler(ctx context.Context, cancel context.CancelFunc, logger logger.L
select {
case sig := <-c:
defer cancel()
err = stopAllServer(servers...)
err = stopAllServers(servers...)
if err != nil {
logger.Error(fmt.Sprintf("%s service error during shutdown: %v", svcName, err))
}
Expand Down

0 comments on commit 9484a44

Please sign in to comment.