about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-25 03:33:37 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-25 03:33:37 -0400
commit55c8ffa2d8ef4509fd0f8b2035ec9c4af7e41b77 (patch)
treeb02c2dfdc8b0f59ee7f38ded3e590596fa5f1947
parentb8a47bb5d8e4e7213dac2f857908126106b3ad3a (diff)
downloadgetwtxt-55c8ffa2d8ef4509fd0f8b2035ec9c4af7e41b77.tar.gz
method names changed in registry lib
-rw-r--r--cache.go2
-rw-r--r--post.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cache.go b/cache.go
index 4f6b90e..0a22f55 100644
--- a/cache.go
+++ b/cache.go
@@ -58,7 +58,7 @@ func refreshCache() {
 	// to add locally.
 	remoteRegistries.Mu.RLock()
 	for _, v := range remoteRegistries.List {
-		err := twtxtCache.ScrapeRemoteRegistry(v)
+		err := twtxtCache.CrawlRemoteRegistry(v)
 		if err != nil {
 			log.Printf("Error while refreshing local copy of remote registry user data: %v\n", err)
 		}
diff --git a/post.go b/post.go
index 103c254..21b3286 100644
--- a/post.go
+++ b/post.go
@@ -39,7 +39,7 @@ func apiPostUser(w http.ResponseWriter, r *http.Request) {
 		remoteRegistries.List = append(remoteRegistries.List, urls)
 		remoteRegistries.Mu.Unlock()
 
-		if err := twtxtCache.ScrapeRemoteRegistry(urls); err != nil {
+		if err := twtxtCache.CrawlRemoteRegistry(urls); err != nil {
 			log400(w, r, err.Error())
 			return
 		}