mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-29 05:49:03 +08:00
parse needle id correctly
fix https://github.com/chrislusf/seaweedfs/issues/713
This commit is contained in:
parent
37e4e022fd
commit
694f93de80
@ -37,7 +37,7 @@ func (k NeedleId) String() string {
|
||||
}
|
||||
|
||||
func ParseNeedleId(idString string) (NeedleId, error) {
|
||||
key, err := strconv.ParseUint(idString, 16, 64)
|
||||
key, err := strconv.ParseUint(idString, 10, 64)
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("needle id %s format error: %v", idString, err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user