From 49fda5add793561bee7946dfee33fc6e5346b4fb Mon Sep 17 00:00:00 2001
From: Garet Halliday <me@garet.holiday>
Date: Sun, 17 Sep 2023 20:09:10 -0500
Subject: [PATCH] delete for now

---
 lib/gat/pool/pool.go | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/lib/gat/pool/pool.go b/lib/gat/pool/pool.go
index d1e56823..646a4511 100644
--- a/lib/gat/pool/pool.go
+++ b/lib/gat/pool/pool.go
@@ -3,7 +3,6 @@ package pool
 import (
 	"errors"
 	"sync"
-	"sync/atomic"
 	"time"
 
 	"github.com/google/uuid"
@@ -25,8 +24,6 @@ type Pool struct {
 
 	closed chan struct{}
 
-	scalingUp atomic.Bool
-
 	recipes         map[string]*recipe.Recipe
 	clients         map[uuid.UUID]*Client
 	clientsByKey    map[[8]byte]*Client
@@ -147,12 +144,6 @@ func (T *Pool) removeRecipe(name string) {
 }
 
 func (T *Pool) scaleUp() {
-	if T.scalingUp.Swap(true) {
-		// another person is trying to scale up this pool already
-		return
-	}
-	defer T.scalingUp.Store(false)
-
 	backoff := T.options.ServerReconnectInitialTime
 
 	for {
-- 
GitLab