Skip to content

Commit

Permalink
Revert "commands: Avoid too many watch file handles causing the serve…
Browse files Browse the repository at this point in the history
…r to fail to start"

This reverts commit 3f38c78.
  • Loading branch information
bep committed Aug 21, 2021
1 parent d966f5d commit ffa2fe6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,6 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {
s.RegisterMediaTypes()
}

err = c.serve(sc)
if err != nil {
return err
}

// Watch runs its own server as part of the routine
if sc.serverWatch {

Expand All @@ -288,7 +283,7 @@ func (sc *serverCmd) server(cmd *cobra.Command, args []string) error {

}

return nil
return c.serve(sc)
}

func getRootWatchDirsStr(baseDir string, watchDirs []string) string {
Expand Down

0 comments on commit ffa2fe6

Please sign in to comment.