chore: remove bloating span (#7780)

* fix(query): query event editors only once per call

* remove span

(cherry picked from commit 386addc718)
This commit is contained in:
Silvan 2024-04-16 13:19:17 +02:00 committed by Livio Spring
parent 288525f180
commit ede8866d32
No known key found for this signature in database
GPG Key ID: 26BB1C2FA5952CF0

View File

@ -88,10 +88,6 @@ func (er *eventsReducer) convertEvents(ctx context.Context, events []eventstore.
}
func (er *eventsReducer) convertEvent(ctx context.Context, event eventstore.Event) *Event {
ctx, span := tracing.NewSpan(ctx)
var err error
defer func() { span.EndWithError(err) }()
editor, ok := er.editors[event.Creator()]
if !ok {
editor = er.q.editorUserByID(ctx, event.Creator())