commands: Revert the recent changes that allowed profiling on server rebuilds

There have been indications that this may freeze the server.
This commit is contained in:
Bjørn Erik Pedersen 2024-02-05 14:27:35 +01:00
parent 9c6d377872
commit c37bf19c89
No known key found for this signature in database
3 changed files with 13 additions and 15 deletions

View file

@ -339,11 +339,10 @@ func (r *rootCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, args
if r.buildWatch {
defer r.timeTrack(time.Now(), "Built")
}
close, err := b.build()
err := b.build()
if err != nil {
return err
}
close()
return nil
}()
if err != nil {