Revert "commands: Avoid too many watch file handles causing the server to fail to start"

This reverts commit 3f38c785b7.
This commit is contained in:
Bjørn Erik Pedersen 2021-08-21 16:32:20 +02:00
parent d966f5d08d
commit ffa2fe6117
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 1 additions and 6 deletions

View File

@ -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 {
@ -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 {