}
func (notifier *NotifierImpl) dispatchHistoryEventNotification(event *Notification) {
notifier.go
identifier := event.ID
startTime := time.Now().UTC()
defer func() {
metrics.HistoryEventNotificationFanoutLatency.With(notifier.metricsHandler).Record(time.Since(startTime))
}()
_, _, _ = notifier.eventsPubsubs.GetAndDo(identifier, func(key any, value any) error {
subscribers := value.(map[string]chan *Notification)