From 483236742ddcd7883b5f9cff92244129274aa79c Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 3 Mar 2026 16:43:56 -0500 Subject: lay/strain: simplify Solver internal synchronization Replaced the AddConstraint() and Solve() methods' request/reply channels, used a mutex instread. Solver now closes the fieldConstrs channel automatically; removed the Close() method. Generally tidied up. --- lay/strain/sym.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lay/strain/sym.go') diff --git a/lay/strain/sym.go b/lay/strain/sym.go index 9d2a0bf..63f4f11 100644 --- a/lay/strain/sym.go +++ b/lay/strain/sym.go @@ -15,7 +15,7 @@ type SymPt struct { // image.Rectangle. type SymRect struct { Origin SymPt // top-left corner position - Size SymPt // Dx() and Dy() + Size SymPt // Dx() and Dy() } func NewSymPt() SymPt { -- cgit v1.2.3