From f2e13d388e8fb4049eb585627ecaa0d55d568f0a Mon Sep 17 00:00:00 2001
From: Garet Halliday <me@garet.holiday>
Date: Thu, 6 Jun 2024 13:16:55 -0500
Subject: [PATCH] more races

---
 lib/gat/handlers/pool/poolers/lifo/pooler.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/gat/handlers/pool/poolers/lifo/pooler.go b/lib/gat/handlers/pool/poolers/lifo/pooler.go
index 6b3018c1..293794fb 100644
--- a/lib/gat/handlers/pool/poolers/lifo/pooler.go
+++ b/lib/gat/handlers/pool/poolers/lifo/pooler.go
@@ -15,10 +15,11 @@ import (
 type Pooler struct {
 	waiting chan struct{}
 
+	pool pools.Locked[chan uuid.UUID]
+
 	servers map[uuid.UUID]struct{}
 	queue   []uuid.UUID
 	waiters ring.Ring[chan<- uuid.UUID]
-	pool    pools.Pool[chan uuid.UUID]
 	closed  bool
 	mu      sync.Mutex
 }
-- 
GitLab