rename resolveEra

This commit is contained in:
Sina Mahmoodi 2025-04-16 11:07:49 +02:00 committed by lightclient
parent 01e48f3e19
commit eb4e231434
No known key found for this signature in database
GPG key ID: 657913021EF45A6A

View file

@ -746,7 +746,7 @@ func (n *Node) OpenDatabaseWithFreezer(name string, cache, handles int, ancient
Type: n.config.DBEngine,
Directory: n.ResolvePath(name),
AncientsDirectory: n.ResolveAncient(name, ancient),
EraDirectory: n.ResolveEra(ancient, era),
EraDirectory: n.ResolveEraDirectory(ancient, era),
Namespace: namespace,
Cache: cache,
Handles: handles,
@ -775,8 +775,8 @@ func (n *Node) ResolveAncient(name string, ancient string) string {
return ancient
}
// ResolveEra returns the absolute path of the era directory.
func (n *Node) ResolveEra(ancient, era string) string {
// ResolveEraDirectory returns the absolute path of the era directory.
func (n *Node) ResolveEraDirectory(ancient, era string) string {
switch {
case era == "":
era = filepath.Join(ancient, "era")