forked from TrueCloudLab/frostfs-node
[#966] node: Refactor WriteCacheMetrics interface
Grouping common fields of methods will enhance the readability of the interface. Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
52bebe9452
commit
4730ecfdb8
3 changed files with 20 additions and 20 deletions
|
@ -21,7 +21,7 @@ func newShardIDMode(subsystem, name, help string) *shardIDModeValue {
|
|||
}
|
||||
}
|
||||
|
||||
func (m *shardIDModeValue) SetMode(shardID string, mode string) {
|
||||
func (m *shardIDModeValue) SetMode(shardID, mode string) {
|
||||
m.modeValue.DeletePartialMatch(prometheus.Labels{
|
||||
shardIDLabel: shardID,
|
||||
})
|
||||
|
@ -54,7 +54,7 @@ func newShardIDPathMode(subsystem, name, help string) *shardIDPathModeValue {
|
|||
}
|
||||
}
|
||||
|
||||
func (m *shardIDPathModeValue) SetMode(shardID, path string, mode string) {
|
||||
func (m *shardIDPathModeValue) SetMode(shardID, path, mode string) {
|
||||
m.modeValue.DeletePartialMatch(prometheus.Labels{
|
||||
shardIDLabel: shardID,
|
||||
pathLabel: path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue