aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/server.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-05 14:27:35 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-05 14:27:35 +0100
commitc37bf19c898035de1518c3f2ab4380f08817151f (patch)
treed9fd6299624e469d84879eaf63f49860ad5718fd /commands/server.go
parent9c6d377872885fb28f4d8534d6765432e6c23ab6 (diff)
downloadhugo-c37bf19c898035de1518c3f2ab4380f08817151f.tar.gz
hugo-c37bf19c898035de1518c3f2ab4380f08817151f.zip
commands: Revert the recent changes that allowed profiling on server rebuilds
There have been indications that this may freeze the server.
Diffstat (limited to 'commands/server.go')
-rw-r--r--commands/server.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/server.go b/commands/server.go
index e803d4824..bdf6e905a 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -495,19 +495,16 @@ func (c *serverCommand) Run(ctx context.Context, cd *simplecobra.Commandeer, arg
}
- var close func()
err := func() error {
defer c.r.timeTrack(time.Now(), "Built")
var err error
- close, err = c.build()
+ err = c.build()
return err
}()
if err != nil {
return err
}
- defer close()
-
return c.serve()
}