High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
fix: gofmt tab_executor.go and suppress staticcheck SA2001
Yash Jadhavf95af4c7922d
diff --git a/internal/bridge/tab_executor.go b/internal/bridge/tab_executor.goindex 15b04b68..2def7478 100644--- a/internal/bridge/tab_executor.go+++ b/internal/bridge/tab_executor.go@@ -22,9 +22,9 @@ import (// Tab2 ─── sequential actions ───► (concurrent across tabs)// Tab3 ─── sequential actions ───►type TabExecutor struct {- semaphore chan struct{} // limits concurrent tab executions+ semaphore chan struct{} // limits concurrent tab executionstabLocks map[string]*sync.Mutex // per-tab sequential execution- mu sync.Mutex // protects tabLocks map+ mu sync.Mutex // protects tabLocks mapmaxParallel int}@@ -154,7 +154,10 @@ func (te *TabExecutor) RemoveTab(tabID string) {delete(te.tabLocks, tabID)te.mu.Unlock()- // Wait for any in-flight task to finish, then release.+ // Wait for any in-flight task to finish.+ // This empty critical section is intentional — it blocks until the mutex+ // is available, ensuring the active task completes before RemoveTab returns.+ //nolint:staticcheck // SA2001: intentional wait for mutex availabilitym.Lock()m.Unlock()}