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

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 {