aboutsummaryrefslogtreecommitdiff
path: root/weed/topology/data_node.go
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2019-01-17 09:17:19 +0800
committerbingoohuang <bingoo.huang@gmail.com>2019-01-17 09:17:19 +0800
commitab6be025d76748388ad3eea6fe6ca000db1c2435 (patch)
tree1be9b1b5e7f91693f4cabe3ae0d114cb7f7dced6 /weed/topology/data_node.go
parent6ddfaf33cba953b92a5e3383a15bf26ab1845dbc (diff)
downloadseaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.tar.xz
seaweedfs-ab6be025d76748388ad3eea6fe6ca000db1c2435.zip
go fmt and fix some typo
Diffstat (limited to 'weed/topology/data_node.go')
-rw-r--r--weed/topology/data_node.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/topology/data_node.go b/weed/topology/data_node.go
index 6ee9a8a03..6ea6d3938 100644
--- a/weed/topology/data_node.go
+++ b/weed/topology/data_node.go
@@ -86,9 +86,9 @@ func (dn *DataNode) GetVolumes() (ret []storage.VolumeInfo) {
func (dn *DataNode) GetVolumesById(id storage.VolumeId) (storage.VolumeInfo, error) {
dn.RLock()
defer dn.RUnlock()
- v_info, ok := dn.volumes[id]
+ vInfo, ok := dn.volumes[id]
if ok {
- return v_info, nil
+ return vInfo, nil
} else {
return storage.VolumeInfo{}, fmt.Errorf("volumeInfo not found")
}