[golang] implement shipyards visits
This commit is contained in:
parent
3cae67aea4
commit
bd2fb50c81
15 changed files with 299 additions and 45 deletions
|
@ -6,6 +6,7 @@ import (
|
|||
"log/slog"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
||||
"git.adyxax.org/adyxax/spacetraders/golang/pkg/agent"
|
||||
"git.adyxax.org/adyxax/spacetraders/golang/pkg/api"
|
||||
|
@ -23,7 +24,7 @@ func main() {
|
|||
logger := slog.New(slog.NewJSONHandler(os.Stdout, opts))
|
||||
slog.SetDefault(logger)
|
||||
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt)
|
||||
ctx, cancel := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
defer cancel()
|
||||
|
||||
db, err := database.NewDB(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue