markthethomas/raft-badger

View on GitHub
badger_store.go

Summary

Maintainability
A
0 mins
Test Coverage

Method BadgerStore.Get has 5 return statements (exceeds 4 allowed).
Wontfix

func (b *BadgerStore) Get(k []byte) ([]byte, error) {
    txn := b.db.NewTransaction(false)
    defer txn.Discard()
    key := []byte(fmt.Sprintf("%s%d", dbConfPrefix, k))
    item, err := txn.Get(key)
Severity: Major
Found in badger_store.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status