feat: Implement graceful server shutdown, optimize WASM module instantiation, remove tokenizer files, and refine config saving and admin key warning.

This commit is contained in:
CJACK
2026-02-17 03:23:56 +08:00
parent f8effc5e84
commit 4251438ff5
7 changed files with 186 additions and 263219 deletions

View File

@@ -310,8 +310,8 @@ func (s *Store) Update(mutator func(*Config) error) error {
}
func (s *Store) Save() error {
s.mu.RLock()
defer s.mu.RUnlock()
s.mu.Lock()
defer s.mu.Unlock()
if s.fromEnv {
Logger.Info("[save_config] source from env, skip write")
return nil