mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 19:44:21 +00:00
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:
parent
288525f180
commit
ede8866d32
@ -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…
Reference in New Issue
Block a user