1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-09-16 18:06:55 +00:00

Add /hll_force_write

This commit is contained in:
Kane York 2015-12-23 22:18:11 -08:00
parent 81c477cd6b
commit 2ddfa2b02c
2 changed files with 7 additions and 0 deletions

View file

@ -164,6 +164,12 @@ func HTTPShowHLL(w http.ResponseWriter, r *http.Request) {
hllFileServer.ServeHTTP(w, r)
}
func HTTPWriteHLL(w http.ResponseWriter, r *http.Request) {
writeAllHLLs()
w.WriteHeader(200)
w.Write([]byte("ok"))
}
// loadUniqueUsers loads the previous HLLs into memory.
// is_init_func
func loadUniqueUsers() {