diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-21 04:13:21 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-21 04:13:21 -0400 |
commit | c896e6b85ff32c3c0c45336de8b75752a31574ca (patch) | |
tree | f9bbacbf49949e4b86adf676b33decbddec40fef /post.go | |
parent | bd23ef0959496aba4c6fc8ca2b3969bbf17aa9d5 (diff) | |
download | getwtxt-c896e6b85ff32c3c0c45336de8b75752a31574ca.tar.gz |
database push/pull functions
Diffstat (limited to 'post.go')
-rw-r--r-- | post.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/post.go b/post.go index 5091a0e..e829538 100644 --- a/post.go +++ b/post.go @@ -33,9 +33,9 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) { } if remoteRegistry { - remote.Mu.Lock() - remote.List = append(remote.List, urls) - remote.Mu.Unlock() + remoteRegistries.Mu.Lock() + remoteRegistries.List = append(remoteRegistries.List, urls) + remoteRegistries.Mu.Unlock() err := twtxtCache.ScrapeRemoteRegistry(urls) if err != nil { |