blobstor: fix mode metric #1060

Merged
fyrchik merged 1 commit from elebedeva/frostfs-node:fix/blobstore-mode-metric into master 2024-03-29 20:44:48 +00:00

View file

@ -31,5 +31,6 @@ func (b *BlobStor) SetMode(m mode.Mode) error {
} }
b.mode = m b.mode = m
b.metrics.SetMode(m.ReadOnly())
Review

Have you checked, are metrics always non-nil?

Have you checked, are `metrics` always non-nil?
return nil return nil
} }