1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2024-12-27 12:12:28 +01:00

Fix data race

This commit is contained in:
Philipp Heckel 2021-12-22 10:04:59 +01:00
parent b6120cf6d7
commit 534fca0d3b

View file

@ -711,7 +711,7 @@ func (s *Server) visitor(r *http.Request) *visitor {
s.visitors[ip] = newVisitor(s.config) s.visitors[ip] = newVisitor(s.config)
return s.visitors[ip] return s.visitors[ip]
} }
v.seen = time.Now() v.Keepalive()
return v return v
} }