diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-05-26 01:48:12 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-05-26 02:05:59 -0400 |
commit | a6f47c07100be337f32325792990e58f5f4a3506 (patch) | |
tree | 309a35b47d4a900a9e02bc8bf48acb8296e10d93 /cache.go | |
parent | e1e68aa2ba2992543603cfd5a4e1fa2e4eaeeb72 (diff) | |
download | getwtxt-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.go | 2 |
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] |