Remove the usless commented code

Remove the usless commented code
This commit is contained in:
Kwuaint
2021-04-16 11:43:18 +08:00
committed by GitHub
parent 35cf83d519
commit 0e6fe26975
-15
View File
@@ -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