Fix data race

This commit is contained in:
Philipp Heckel 2021-12-22 10:04:59 +01:00
parent b6120cf6d7
commit 534fca0d3b
1 changed files with 1 additions and 1 deletions

View File

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