Added comments

This commit is contained in:
Diptanu Choudhury
2016-12-19 17:53:11 -08:00
parent 6143d8dbbd
commit 7ebe4a6972
5 changed files with 37 additions and 16 deletions

View File

@@ -90,13 +90,11 @@ func (s *HTTPServer) ClientGCRequest(resp http.ResponseWriter, req *http.Request
if s.agent.client == nil {
return nil, clientNotRunning
}
err := s.agent.Client().CollectAllAllocs()
return nil, err
return nil, s.agent.Client().CollectAllAllocs()
}
func (s *HTTPServer) allocGC(allocID string, resp http.ResponseWriter, req *http.Request) (interface{}, error) {
err := s.agent.Client().CollectAllocation(allocID)
return nil, err
return nil, s.agent.Client().CollectAllocation(allocID)
}
func (s *HTTPServer) allocSnapshot(allocID string, resp http.ResponseWriter, req *http.Request) (interface{}, error) {