diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-13 20:18:05 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-13 20:18:10 -0400 |
commit | 9c90526a24f32a00ad35073a09839189eb8aa007 (patch) | |
tree | cd8aa746d88512bb44a1c8e69f73a4e63e7af772 /svc/init.go | |
parent | 88dbd876a9635fa515ed29875816d05975272597 (diff) | |
download | getwtxt-9c90526a24f32a00ad35073a09839189eb8aa007.tar.gz |
removed mutex from remoteRegistries
slices are safe to use concurrently already. leaving as a struct for possible expansion later.
Diffstat (limited to 'svc/init.go')
-rw-r--r-- | svc/init.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/svc/init.go b/svc/init.go index fe83145..edd081c 100644 --- a/svc/init.go +++ b/svc/init.go @@ -5,7 +5,6 @@ import ( "log" "os" "os/signal" - "sync" "time" "github.com/getwtxt/registry" @@ -47,7 +46,6 @@ var twtxtCache = registry.NewIndex() // List of other registries submitted to this registry var remoteRegistries = &RemoteRegistries{ - Mu: sync.RWMutex{}, List: make([]string, 0), } |