Fix: recover bot; llama.cpp fix
This commit is contained in:
2
main.go
2
main.go
@ -69,7 +69,7 @@ func main() {
|
||||
|
||||
<-stop
|
||||
slog.Info("Shutting down server...")
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||
defer cancel()
|
||||
if err := server.Shutdown(ctx); err != nil {
|
||||
slog.Error("server shutdown failed", "error", err)
|
||||
|
Reference in New Issue
Block a user