waku-org/go-waku

View on GitHub
waku/persistence/store.go

Summary

Maintainability
A
35 mins
Test Coverage
C
79%

Method DBStore.Query has 5 return statements (exceeds 4 allowed).
Open

func (d *DBStore) Query(query *pb.HistoryQuery) (*pb.Index, []StoredMessage, error) {
    start := time.Now()
    defer func() {
        elapsed := time.Since(start)
        d.log.Info(fmt.Sprintf("Loading records from the DB took %s", elapsed))
Severity: Major
Found in waku/persistence/store.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status