mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
no dup uint64
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
6bfd8dff52
commit
c53bde7e17
3 changed files with 3 additions and 3 deletions
|
|
@ -203,7 +203,7 @@ func (f *Freezer) AncientRange(kind string, start, count, maxBytes uint64) ([][]
|
||||||
}
|
}
|
||||||
|
|
||||||
// RetrieveBytes retrieves a byte range [offset:offset+length] from the specified ancient item.
|
// RetrieveBytes retrieves a byte range [offset:offset+length] from the specified ancient item.
|
||||||
func (f *Freezer) AncientBytes(kind string, number uint64, offset, length uint64) ([]byte, error) {
|
func (f *Freezer) AncientBytes(kind string, number, offset, length uint64) ([]byte, error) {
|
||||||
if table := f.tables[kind]; table != nil {
|
if table := f.tables[kind]; table != nil {
|
||||||
return table.RetrieveBytes(number, offset, length)
|
return table.RetrieveBytes(number, offset, length)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -127,7 +127,7 @@ func (f *resettableFreezer) AncientRange(kind string, start, count, maxBytes uin
|
||||||
}
|
}
|
||||||
|
|
||||||
// RetrieveBytes retrieves a byte range [offset:offset+length] from the specified ancient item.
|
// RetrieveBytes retrieves a byte range [offset:offset+length] from the specified ancient item.
|
||||||
func (f *resettableFreezer) AncientBytes(kind string, number uint64, offset, length uint64) ([]byte, error) {
|
func (f *resettableFreezer) AncientBytes(kind string, number, offset, length uint64) ([]byte, error) {
|
||||||
f.lock.RLock()
|
f.lock.RLock()
|
||||||
defer f.lock.RUnlock()
|
defer f.lock.RUnlock()
|
||||||
return f.freezer.AncientBytes(kind, number, offset, length)
|
return f.freezer.AncientBytes(kind, number, offset, length)
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ type AncientReaderOp interface {
|
||||||
AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error)
|
AncientRange(kind string, start, count, maxBytes uint64) ([][]byte, error)
|
||||||
|
|
||||||
// AncientBytes retrieves a byte range [offset:offset+length] from the specified ancient item.
|
// AncientBytes retrieves a byte range [offset:offset+length] from the specified ancient item.
|
||||||
AncientBytes(kind string, number uint64, offset, length uint64) ([]byte, error)
|
AncientBytes(kind string, number, offset, length uint64) ([]byte, error)
|
||||||
|
|
||||||
// Ancients returns the ancient item numbers in the ancient store.
|
// Ancients returns the ancient item numbers in the ancient store.
|
||||||
Ancients() (uint64, error)
|
Ancients() (uint64, error)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue