summary refs log tree commit diff stats
path: root/cache.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-26 01:48:12 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-26 02:05:59 -0400
commita6f47c07100be337f32325792990e58f5f4a3506 (patch)
tree309a35b47d4a900a9e02bc8bf48acb8296e10d93 /cache.go
parente1e68aa2ba2992543603cfd5a4e1fa2e4eaeeb72 (diff)
downloadgetwtxt-a6f47c07100be337f32325792990e58f5f4a3506.tar.gz
simplified indexHandler to reference staticCache
sending ETag with all GET responses: sha256 of raw bytes
Diffstat (limited to 'cache.go')
-rw-r--r--cache.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.go b/cache.go
index 0a22f55..a5531b0 100644
--- a/cache.go
+++ b/cache.go
@@ -143,7 +143,7 @@ func pullDatabase() {
 			// Start with an empty Data struct. If
 			// there's already one in the cache, pull
 			// it and use it instead.
-			data := registry.NewUserData()
+			data := registry.NewUser()
 			twtxtCache.Mu.RLock()
 			if _, ok := twtxtCache.Reg[urls]; ok {
 				data = twtxtCache.Reg[urls]