mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-06 13:07:52 +00:00
chore: remove bloating span (#7780)
* fix(query): query event editors only once per call * remove span
This commit is contained in:
parent
f412687427
commit
386addc718
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user