aboutsummaryrefslogtreecommitdiff
path: root/lib/http/server.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-02-13 12:43:14 +0700
committerShulhan <ms@kilabit.info>2026-02-13 12:43:14 +0700
commitccc9926635c1702337ac6fd1038bd7b903afa7f9 (patch)
tree8fe0c03d2de595952256955a086d9ae9de443126 /lib/http/server.go
parentc069f76cedee994064567ec05572dbee87770f2e (diff)
downloadpakakeh.go-ccc9926635c1702337ac6fd1038bd7b903afa7f9.tar.xz
lib/http: realign the fields in struct Server
Previous struct size is 384 pointer bytes, now realign to 336 bytes (-48 bytes).
Diffstat (limited to 'lib/http/server.go')
-rw-r--r--lib/http/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/http/server.go b/lib/http/server.go
index bbd1cf3e..7a52f2fb 100644
--- a/lib/http/server.go
+++ b/lib/http/server.go
@@ -33,6 +33,8 @@ const (
type Server struct {
*http.Server
+ shutdownIdleTimer *time.Timer
+
evals []Evaluator
routeDeletes []*route
routeGets []*route
@@ -46,8 +48,6 @@ type Server struct {
// Modifying the value of Options after server has been started may
// cause undefined effects.
Options ServerOptions
-
- shutdownIdleTimer *time.Timer
}
// NewServer create and initialize new HTTP server that serve root directory