mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
only use "" for hdd to avoid two values for the same thing
This commit is contained in:
parent
b314d78e97
commit
7403cd43c5
|
@ -7,7 +7,7 @@ import (
|
|||
type DiskType string
|
||||
|
||||
const (
|
||||
HardDriveType DiskType = "hdd"
|
||||
HardDriveType DiskType = ""
|
||||
SsdType = "ssd"
|
||||
)
|
||||
|
||||
|
@ -27,7 +27,7 @@ func ToDiskType(vt string) (diskType DiskType) {
|
|||
|
||||
func (diskType DiskType) String() string{
|
||||
if diskType == "" {
|
||||
return "hdd"
|
||||
return ""
|
||||
}
|
||||
return string(diskType)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue