blobstor: fix mode metric #1060
1 changed files with 1 additions and 0 deletions
|
@ -31,5 +31,6 @@ func (b *BlobStor) SetMode(m mode.Mode) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
b.mode = m
|
b.mode = m
|
||||||
|
b.metrics.SetMode(m.ReadOnly())
|
||||||
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue
Have you checked, are
metrics
always non-nil?