synapsecns/sanguine

View on GitHub
ethergo/chain/chainwatcher/height.go

Summary

Maintainability
A
45 mins
Test Coverage

Method blockHeightWatcherImpl.startBlockSubscriber has 7 return statements (exceeds 4 allowed).
Open

func (b *blockHeightWatcherImpl) startBlockSubscriber() (<-chan uint64, error) {
    acquired := b.subscriberMux.TryAcquire(1)
    if !acquired {
        return nil, errors.New("only one Subscribe() can be used per blockHeightWatcherImpl")
    }
Severity: Major
Found in ethergo/chain/chainwatcher/height.go - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status