[#1431] obj_storage/shard: Fix visibility of 'newMetricStore'

Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
Alexander Chuprov 2024-10-14 17:25:00 +03:00 committed by Evgenii Stratonikov
parent 63466d71b2
commit 00b1cecfb7
3 changed files with 5 additions and 5 deletions

View file

@ -126,7 +126,7 @@ func TestRefillMetabaseCorrupted(t *testing.T) {
}), }),
} }
mm := NewMetricStore() mm := newMetricStore()
sh := New( sh := New(
WithID(NewIDFromBytes([]byte{})), WithID(NewIDFromBytes([]byte{})),
@ -190,7 +190,7 @@ func TestRefillMetabase(t *testing.T) {
}), }),
} }
mm := NewMetricStore() mm := newMetricStore()
sh := New( sh := New(
WithID(NewIDFromBytes([]byte{})), WithID(NewIDFromBytes([]byte{})),

View file

@ -35,7 +35,7 @@ type metricsStore struct {
refillStatus string refillStatus string
} }
func NewMetricStore() *metricsStore { func newMetricStore() *metricsStore {
return &metricsStore{ return &metricsStore{
objCounters: map[string]uint64{ objCounters: map[string]uint64{
"phy": 0, "phy": 0,
@ -404,7 +404,7 @@ func shardWithMetrics(t *testing.T, path string) (*Shard, *metricsStore) {
}), }),
} }
mm := NewMetricStore() mm := newMetricStore()
sh := New( sh := New(
WithID(NewIDFromBytes([]byte{})), WithID(NewIDFromBytes([]byte{})),

View file

@ -51,7 +51,7 @@ func TestShardReload(t *testing.T) {
WithMetaBaseOptions(metaOpts...), WithMetaBaseOptions(metaOpts...),
WithPiloramaOptions( WithPiloramaOptions(
pilorama.WithPath(filepath.Join(p, "pilorama"))), pilorama.WithPath(filepath.Join(p, "pilorama"))),
WithMetricsWriter(NewMetricStore()), WithMetricsWriter(newMetricStore()),
} }
sh := New(opts...) sh := New(opts...)