summary refs log tree commit diff stats
path: root/post.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-21 04:13:21 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-21 04:13:21 -0400
commitc896e6b85ff32c3c0c45336de8b75752a31574ca (patch)
treef9bbacbf49949e4b86adf676b33decbddec40fef /post.go
parentbd23ef0959496aba4c6fc8ca2b3969bbf17aa9d5 (diff)
downloadgetwtxt-c896e6b85ff32c3c0c45336de8b75752a31574ca.tar.gz
database push/pull functions
Diffstat (limited to 'post.go')
-rw-r--r--post.go6
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 {