~thecashewtrader/frensviz

899f249804d6b6b38fe3d8d068510328bca2bef0 — thecashewtrader 1 year, 5 months ago f88c5f6
Release Lock on early return in addRelations
1 files changed, 1 insertions(+), 0 deletions(-)

M pkg/relations/main.go
M pkg/relations/main.go => pkg/relations/main.go +1 -0
@@ 36,6 36,7 @@ func addRelations(wg *sync.WaitGroup, mx *sync.Mutex, domain string) {
	defer wg.Done()
	mx.Lock()
	if slices.Contains(visited, domain) {
		mx.Unlock()
		return
	}
	visited = append(visited, domain)