mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
fix prealloc in trace (#1558)
This commit is contained in:
parent
e25ab9f4ca
commit
e55c23164a
@ -24,7 +24,7 @@ func (t *Tracer) Read(opts ...trace.ReadOption) ([]*trace.Span, error) {
|
||||
|
||||
sp := t.buffer.Get(t.buffer.Size())
|
||||
|
||||
var spans []*trace.Span
|
||||
spans := make([]*trace.Span, 0, len(sp))
|
||||
|
||||
for _, span := range sp {
|
||||
val := span.Value.(*trace.Span)
|
||||
|
Loading…
Reference in New Issue
Block a user