From 66466e161fff1bd2b8c2ea42249947ccc19c39fe Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 15 Feb 2025 01:22:36 +0100 Subject: [golang] implement systems and waypoints lookups --- golang/pkg/agent/contracting.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'golang/pkg/agent/contracting.go') diff --git a/golang/pkg/agent/contracting.go b/golang/pkg/agent/contracting.go index 44d7753..0f07170 100644 --- a/golang/pkg/agent/contracting.go +++ b/golang/pkg/agent/contracting.go @@ -26,6 +26,7 @@ func (a *agent) autoContracting(ship *model.Ship) { } } } + a.sendShipError(fmt.Errorf("failed to run contracts: negotiating new contracts is not implemented yet"), ship) // TODO //for { // negotiate @@ -37,6 +38,7 @@ func (a *agent) runContract(contract *model.Contract, ship *model.Ship) error { if err := a.client.Accept(contract, a.db); err != nil { return fmt.Errorf("failed to run contract: %w", err) } + //slog.Info("running contract", "contract", contract, "ship", ship.Symbol) switch contract.Type { // TODO //case "PROCUREMENT": -- cgit v1.2.3