Fix data race
parent
b6120cf6d7
commit
534fca0d3b
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue