Skip to content

Commit

Permalink
[receiver/zipkin] Remove unused locking (#3463)
Browse files Browse the repository at this point in the history
The lock wasn't called from more than one location.

Relates #3041
  • Loading branch information
jrcamp committed Jun 21, 2021
1 parent 0689574 commit 806a2b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions receiver/zipkinreceiver/trace_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 806a2b7

Please sign in to comment.