Skip to content

Commit

Permalink
stellar#5163: cleanup archive pool, when get stats from archive insta…
Browse files Browse the repository at this point in the history
…nces, accept all, not just first only
  • Loading branch information
sreuland committed Jan 29, 2024
1 parent 8338a1c commit 98d54d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions historyarchive/archive_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ func NewArchivePool(archiveURLs []string, opts ArchiveOptions) (ArchivePool, err
func (pa ArchivePool) GetStats() []ArchiveStats {
stats := []ArchiveStats{}
for _, archive := range pa {
if len(archive.GetStats()) == 1 {
stats = append(stats, archive.GetStats()[0])
}
stats = append(stats, archive.GetStats()...)
}
return stats
}
Expand Down

0 comments on commit 98d54d1

Please sign in to comment.