forked from TrueCloudLab/frostfs-node
[#1764] neofs-node: Use constants for storage types
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
9113793688
commit
6f45cc81fc
6 changed files with 16 additions and 7 deletions
|
@ -229,9 +229,12 @@ func u64FromHexString(str string) uint64 {
|
|||
return v
|
||||
}
|
||||
|
||||
// Type is blobovniczatree storage type used in logs and configuration.
|
||||
const Type = "blobovnicza"
|
||||
|
||||
// Type implements common.Storage.
|
||||
func (b *Blobovniczas) Type() string {
|
||||
return "blobovnicza"
|
||||
return Type
|
||||
}
|
||||
|
||||
// SetCompressor implements common.Storage.
|
||||
|
|
|
@ -330,9 +330,12 @@ func (t *FSTree) NumberOfObjects() (uint64, error) {
|
|||
return counter, nil
|
||||
}
|
||||
|
||||
// Type is fstree storage type used in logs and configuration.
|
||||
const Type = "fstree"
|
||||
|
||||
// Type implements common.Storage.
|
||||
func (*FSTree) Type() string {
|
||||
return "fstree"
|
||||
return Type
|
||||
}
|
||||
|
||||
// SetCompressor implements common.Storage.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue