Merge pull request #585 from stevvooe/content-service-ignore-eof
services/content: ignore io.EOF after successful commit
This commit is contained in:
commit
95a5758641
1 changed files with 4 additions and 0 deletions
|
@ -310,6 +310,10 @@ func (s *Service) Write(session api.Content_WriteServer) (err error) {
|
|||
|
||||
req, err = session.Recv()
|
||||
if err != nil {
|
||||
if err == io.EOF {
|
||||
return nil
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue