ethergo/chain/chainwatcher/height.go
Method blockHeightWatcherImpl.startBlockSubscriber
has 7 return statements (exceeds 4 allowed). Open
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")
}