mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-21 13:08:52 +08:00
only use "" for hdd to avoid two values for the same thing
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
|||||||
type DiskType string
|
type DiskType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
HardDriveType DiskType = "hdd"
|
HardDriveType DiskType = ""
|
||||||
SsdType = "ssd"
|
SsdType = "ssd"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ func ToDiskType(vt string) (diskType DiskType) {
|
|||||||
|
|
||||||
func (diskType DiskType) String() string{
|
func (diskType DiskType) String() string{
|
||||||
if diskType == "" {
|
if diskType == "" {
|
||||||
return "hdd"
|
return ""
|
||||||
}
|
}
|
||||||
return string(diskType)
|
return string(diskType)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user