mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
e3: simplify history reader (#846)
This commit is contained in:
parent
504763fe8e
commit
559e60f1a3
@ -420,3 +420,10 @@ func Bytesmask(fixedbits int) (fixedbytes int, mask byte) {
|
||||
type ToBitmap interface {
|
||||
ToBitmap() (*roaring64.Bitmap, error)
|
||||
}
|
||||
|
||||
func ToIter(it roaring64.IntIterable64) *ToIterInterface { return &ToIterInterface{it: it} }
|
||||
|
||||
type ToIterInterface struct{ it roaring64.IntIterable64 }
|
||||
|
||||
func (i *ToIterInterface) HasNext() bool { return i.it.HasNext() }
|
||||
func (i *ToIterInterface) Next() (uint64, error) { return i.it.Next(), nil }
|
||||
|
Loading…
Reference in New Issue
Block a user