consolidated UI setup into a single function call from main

This commit is contained in:
2026-02-20 15:52:36 -07:00
parent 8a1c770079
commit 7ae9326292
6 changed files with 38 additions and 13 deletions
+2 -2
View File
@@ -373,8 +373,8 @@ func (st *amSessionStore) sweep(tick <-chan time.Time, done chan bool) {
// sessionStore is the global session store.
var sessionStore *amSessionStore
// SetupAmSessionManager sets up the session store and its sweeper goroutine.
func SetupAmSessionManager() func() {
// setupSessionManager sets up the session store and its sweeper goroutine.
func setupSessionManager() func() {
// get the time for the session to expire
d, err := time.ParseDuration(config.GlobalConfig.Site.SessionExpire)
if err != nil {