From 534fca0d3b6d9868f1d3d98af119cf2a8d593318 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Wed, 22 Dec 2021 10:04:59 +0100 Subject: [PATCH] Fix data race --- server/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 87d8f408..47b3e0fe 100644 --- a/server/server.go +++ b/server/server.go @@ -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 }