Skip to content

Commit a425a47

Browse files
authored
core/rawdb, eth/protocols : Method name typo fix (#22026)
1 parent c17a773 commit a425a47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/rawdb/accessors_snapshot.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ func DeleteSnapshotRecoveryNumber(db ethdb.KeyValueWriter) {
176176
}
177177
}
178178

179-
// ReadSanpshotSyncStatus retrieves the serialized sync status saved at shutdown.
180-
func ReadSanpshotSyncStatus(db ethdb.KeyValueReader) []byte {
179+
// ReadSnapshotSyncStatus retrieves the serialized sync status saved at shutdown.
180+
func ReadSnapshotSyncStatus(db ethdb.KeyValueReader) []byte {
181181
data, _ := db.Get(snapshotSyncStatusKey)
182182
return data
183183
}

eth/protocols/snap/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ func (s *Syncer) Sync(root common.Hash, cancel chan struct{}) error {
614614
func (s *Syncer) loadSyncStatus() {
615615
var progress syncProgress
616616

617-
if status := rawdb.ReadSanpshotSyncStatus(s.db); status != nil {
617+
if status := rawdb.ReadSnapshotSyncStatus(s.db); status != nil {
618618
if err := json.Unmarshal(status, &progress); err != nil {
619619
log.Error("Failed to decode snap sync status", "err", err)
620620
} else {

0 commit comments

Comments
 (0)