topfreegames/khan

View on GitHub
models/es_worker.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method ESWorker.PerformUpdateES has 63 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (w *ESWorker) PerformUpdateES(m *workers.Msg) {
    tags := opentracing.Tags{"component": "go-workers"}
    span := opentracing.StartSpan("PerformUpdateES", tags)
    defer span.Finish()
    defer tracing.LogPanic(span)
Severity: Minor
Found in models/es_worker.go - About 1 hr to fix

    Avoid deeply nested control flow statements.
    Open

                if err != nil {
                    logger.Error("Failed to delete clan from Elastic Search.", zap.Error(err))
                }
    Severity: Major
    Found in models/es_worker.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status