defer finished log

This commit is contained in:
tobi 2025-01-07 18:24:28 +01:00
parent b70b8e2b72
commit 52c3847dc0

View File

@ -142,6 +142,7 @@ func (s *Subscriptions) ProcessDomainPermissionSubscriptions(
permType gtsmodel.DomainPermissionType,
) {
log.Info(ctx, "start")
defer log.Info(ctx, "finished")
// Get permission subscriptions in priority order (highest -> lowest).
permSubs, err := s.state.DB.GetDomainPermissionSubscriptionsByPriority(ctx, permType)
@ -194,8 +195,6 @@ func (s *Subscriptions) ProcessDomainPermissionSubscriptions(
return
}
}
log.Info(ctx, "finished")
}
// ProcessDomainPermissionSubscription processes one domain permission