From 806a2b72a0dc217f1752d71bbac2aff0b1df958b Mon Sep 17 00:00:00 2001 From: Jay Camp Date: Mon, 21 Jun 2021 06:34:13 -0400 Subject: [PATCH] [receiver/zipkin] Remove unused locking (#3463) The lock wasn't called from more than one location. Relates #3041 --- receiver/zipkinreceiver/trace_receiver.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/receiver/zipkinreceiver/trace_receiver.go b/receiver/zipkinreceiver/trace_receiver.go index 1fa76a7c1a3..beee491ee62 100644 --- a/receiver/zipkinreceiver/trace_receiver.go +++ b/receiver/zipkinreceiver/trace_receiver.go @@ -49,9 +49,6 @@ var errNextConsumerRespBody = []byte(`"Internal Server Error"`) // ZipkinReceiver type is used to handle spans received in the Zipkin format. type ZipkinReceiver struct { - // mu protects the fields of this struct - mu sync.Mutex - // addr is the address onto which the HTTP server will be bound host component.Host nextConsumer consumer.Traces @@ -95,9 +92,6 @@ func (zr *ZipkinReceiver) Start(_ context.Context, host component.Host) error { return errors.New("nil host") } - zr.mu.Lock() - defer zr.mu.Unlock() - zr.host = host zr.server = zr.config.HTTPServerSettings.ToServer(zr) var listener net.Listener