From 9c90526a24f32a00ad35073a09839189eb8aa007 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Thu, 13 Jun 2019 20:18:05 -0400 Subject: removed mutex from remoteRegistries slices are safe to use concurrently already. leaving as a struct for possible expansion later. --- svc/db_test.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'svc/db_test.go') diff --git a/svc/db_test.go b/svc/db_test.go index abf7626..3c0abdf 100644 --- a/svc/db_test.go +++ b/svc/db_test.go @@ -23,9 +23,7 @@ func Test_pushpullDatabase(t *testing.T) { twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "", net.ParseIP("127.0.0.1"), statusmap) - remoteRegistries.Mu.Lock() remoteRegistries.List = append(remoteRegistries.List, "https://twtxt.tilde.institute/api/plain/users") - remoteRegistries.Mu.Unlock() t.Run("Push to Database", func(t *testing.T) { err := pushDB() -- cgit 1.4.1-2-gfad0