mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
fix id String() instead
This commit is contained in:
parent
694f93de80
commit
d361a1ddf5
|
@ -33,11 +33,11 @@ func BytesToNeedleId(bytes []byte) NeedleId {
|
|||
}
|
||||
|
||||
func (k NeedleId) String() string {
|
||||
return strconv.FormatUint(uint64(k), 10)
|
||||
return strconv.FormatUint(uint64(k), 16)
|
||||
}
|
||||
|
||||
func ParseNeedleId(idString string) (NeedleId, error) {
|
||||
key, err := strconv.ParseUint(idString, 10, 64)
|
||||
key, err := strconv.ParseUint(idString, 16, 64)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("needle id %s format error: %v", idString, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue