diff options
Diffstat (limited to 'weed/storage/needle/volume_id.go')
| -rw-r--r-- | weed/storage/needle/volume_id.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/storage/needle/volume_id.go b/weed/storage/needle/volume_id.go index be56e42fa..3366c14bf 100644 --- a/weed/storage/needle/volume_id.go +++ b/weed/storage/needle/volume_id.go @@ -10,9 +10,9 @@ func NewVolumeId(vid string) (VolumeId, error) { volumeId, err := strconv.ParseUint(vid, 10, 64) return VolumeId(volumeId), err } -func (vid *VolumeId) String() string { - return strconv.FormatUint(uint64(*vid), 10) +func (vid VolumeId) String() string { + return strconv.FormatUint(uint64(vid), 10) } -func (vid *VolumeId) Next() VolumeId { - return VolumeId(uint32(*vid) + 1) +func (vid VolumeId) Next() VolumeId { + return VolumeId(uint32(vid) + 1) } |
