Skip to content

Commit

Permalink
fix(server): remove additional call onServerStartup
Browse files Browse the repository at this point in the history
  • Loading branch information
pkkummermo committed Dec 18, 2023
1 parent 58befae commit 065cc3d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ func (server *App) Start(port ...uint16) error {
onServerStartup()
}

for _, onServerStartup := range server.config.server.events.onServerStartup {
onServerStartup()
}

if serveErr := server.server.Serve(listener); serveErr != nil {
if errors.Is(serveErr, http.ErrServerClosed) {
return nil
Expand Down

0 comments on commit 065cc3d

Please sign in to comment.