Merge pull request #6053 from kwuaint/patch-1
Remove the usless commented code
This commit is contained in:
commit
f97784ad48
@ -142,11 +142,6 @@ func (api *api) Spawn() (nodeInfo, error) {
|
||||
api.runningLk.Lock()
|
||||
api.running[id].meta.State = NodeStopped
|
||||
api.runningLk.Unlock()
|
||||
|
||||
//logfile.Close()
|
||||
//errlogfile.Close()
|
||||
|
||||
//close(mux.stop)
|
||||
},
|
||||
}
|
||||
api.runningLk.Unlock()
|
||||
@ -221,11 +216,6 @@ func (api *api) SpawnStorage(fullNodeRepo string) (nodeInfo, error) {
|
||||
api.runningLk.Lock()
|
||||
api.running[id].meta.State = NodeStopped
|
||||
api.runningLk.Unlock()
|
||||
|
||||
//logfile.Close()
|
||||
//errlogfile.Close()
|
||||
|
||||
//close(mux.stop)
|
||||
},
|
||||
}
|
||||
api.runningLk.Unlock()
|
||||
@ -272,11 +262,6 @@ func (api *api) RestartNode(id int32) (nodeInfo, error) {
|
||||
api.runningLk.Lock()
|
||||
api.running[id].meta.State = NodeStopped
|
||||
api.runningLk.Unlock()
|
||||
|
||||
//logfile.Close()
|
||||
//errlogfile.Close()
|
||||
|
||||
//close(mux.stop)
|
||||
}
|
||||
|
||||
nd.meta.State = NodeRunning
|
||||
|
Loading…
Reference in New Issue
Block a user