all database operations now take a context.Context, which is propagated through from sources

This commit is contained in:
2025-12-20 22:29:26 -07:00
parent 9e6bf2feda
commit 5c8bb8dd5e
39 changed files with 605 additions and 504 deletions
+3 -3
View File
@@ -124,9 +124,6 @@ func main() {
closer = ui.SetupAmContext()
defer closer()
// Set up Echo.
e := setupEcho()
// Set up to trap SIGINT and shut down gracefully
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt)
defer stop()
@@ -138,6 +135,9 @@ func main() {
ampool.Shutdown()
}()
// Set up Echo.
e := setupEcho()
// Start server
go func() {
if err := e.Start(":1323"); err != nil && err != http.ErrServerClosed {