Commit 2f480311 authored by Matt Joiner's avatar Matt Joiner
Browse files

Remove unnecessary Server lock in Ping

parent 5829cb33
......@@ -772,8 +772,6 @@ func (s *Server) transactionQuerySender(sendCtx context.Context, sendErr chan<-
// Sends a ping query to the address given.
func (s *Server) Ping(node *net.UDPAddr, callback func(krpc.Msg, error)) error {
s.mu.Lock()
defer s.mu.Unlock()
return s.ping(node, callback)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment