[#373] local storage: Pass parent ID

This is required to add shard ID as metric label.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2023-06-07 14:39:03 +03:00
parent d5aaec1107
commit d8ecc69d00
16 changed files with 47 additions and 0 deletions

View file

@ -3,6 +3,7 @@ package blobstor
import "time"
type Metrics interface {
SetParentID(parentID string)
SetMode(readOnly bool)
Close()
@ -16,6 +17,7 @@ type Metrics interface {
type noopMetrics struct{}
func (m *noopMetrics) SetParentID(string) {}
func (m *noopMetrics) SetMode(bool) {}
func (m *noopMetrics) Close() {}
func (m *noopMetrics) Delete(time.Duration, bool, bool) {}