mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-25 07:39:43 +01:00
defer finished log
This commit is contained in:
parent
b70b8e2b72
commit
52c3847dc0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user