synapsecns/sanguine

View on GitHub
services/scribe/db/datastore/sql/mysql/store.go

Summary

Maintainability
A
35 mins
Test Coverage

Function NewMysqlStore has 5 return statements (exceeds 4 allowed).
Open

func NewMysqlStore(parentCtx context.Context, dbURL string, handler metrics.Handler, skipMigrations bool) (_ *Store, err error) {
    logger.Debug("creating mysql store")
    scribeLogger.ReportScribeState(0, 0, nil, scribeLogger.CreatingSQLStore)
    ctx, span := handler.Tracer().Start(parentCtx, "start-mysql")
    defer func() {
Severity: Major
Found in services/scribe/db/datastore/sql/mysql/store.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status