summary refs log tree commit diff stats
path: root/svc/init_test.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
committerBen Morrison <ben@gbmor.dev>2019-06-19 19:39:08 -0400
commit37142b5d78d2eace9fef79d20793b0d42965dae5 (patch)
tree3c0c93fc5daba9916cf00d9dfce1007927694f8f /svc/init_test.go
parent75e9f55daa3946ae3b51cbcf3204d5131e420a84 (diff)
downloadgetwtxt-37142b5d78d2eace9fef79d20793b0d42965dae5.tar.gz
updated internal functionality for registry v0.4.0 v0.4.4
Diffstat (limited to 'svc/init_test.go')
-rw-r--r--svc/init_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/svc/init_test.go b/svc/init_test.go
index 72c8e3f..21f0bba 100644
--- a/svc/init_test.go
+++ b/svc/init_test.go
@@ -91,10 +91,10 @@ func testConfig() {
 // Creates a fresh mock registry, with a single
 // user and their statuses, for testing.
 func mockRegistry() {
-	twtxtCache = registry.NewIndex(nil)
+	twtxtCache = registry.New(nil)
 	statuses, _, _ := registry.GetTwtxt("https://gbmor.dev/twtxt.txt", nil)
 	parsed, _ := registry.ParseUserTwtxt(statuses, "gbmor", "https://gbmor.dev/twtxt.txt")
-	_ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", "1", net.ParseIP("127.0.0.1"), parsed)
+	_ = twtxtCache.AddUser("gbmor", "https://gbmor.dev/twtxt.txt", net.ParseIP("127.0.0.1"), parsed)
 }
 
 // Empties the mock registry's user of statuses
@@ -105,7 +105,7 @@ func killStatuses() {
 	user.Mu.Lock()
 
 	user.Status = registry.NewTimeMap()
-	user.RLen = "0"
+	user.LastModified = "0"
 	twtxtCache.Users["https://gbmor.dev/twtxt.txt"] = user
 
 	user.Mu.Unlock()