server/pkg/tasks_manager/periodic.go
Method Manager.cleanupTaskHistory
has 7 return statements (exceeds 4 allowed). Open
Open
func (m *Manager) cleanupTaskHistory(ctx context.Context, req *logical.Request) error {
// define taskHistoryLimit
taskHistoryLimit := fieldDefaultTaskHistoryLimit
{
config, err := getConfiguration(ctx, req.Storage)
Method Manager.PeriodicFunc
has 5 return statements (exceeds 4 allowed). Open
Open
func (m *Manager) PeriodicFunc(ctx context.Context, req *logical.Request) error {
// lock manager
m.mu.Lock()
defer m.mu.Unlock()