Merge pull request #1236 from DheerajSShetty/squashed_feature

defer closing the ReadCloser in ObjectStoreGRPCServer.GetObject
This commit is contained in:
KubeKween
2019-02-28 13:12:05 -08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions
@@ -0,0 +1 @@
Need to defer closing the the ReadCloser in ObjectStoreGRPCServer.GetObject
+1
View File
@@ -284,6 +284,7 @@ func (s *ObjectStoreGRPCServer) GetObject(req *proto.GetObjectRequest, stream pr
if err != nil {
return err
}
defer rdr.Close()
chunk := make([]byte, byteChunkSize)
for {