[#1055] blobstor: fix mode metric

It used to always show CLOSED after setting shard mode
to read-only regardless of actual mode.
Now metric represents actual blobstor mode of operations.

Signed-off-by: Ekaterina Lebedeva <ekaterina.lebedeva@yadro.com>
pull/1066/head
Ekaterina Lebedeva 2024-03-28 16:12:33 +03:00 committed by Evgenii Stratonikov
parent 8690db697c
commit 0990a9b0bd
1 changed files with 1 additions and 0 deletions

View File

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