Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
core: close Stream after Connection.Invoke
[govpp.git]
/
core
/
stream.go
diff --git
a/core/stream.go
b/core/stream.go
index
363cc9f
..
2f639b0
100644
(file)
--- a/
core/stream.go
+++ b/
core/stream.go
@@
-70,6
+70,7
@@
func (c *Connection) Invoke(ctx context.Context, req api.Message, reply api.Mess
if err != nil {
return err
}
+ defer func() { _ = stream.Close() }()
if err := stream.SendMsg(req); err != nil {
return err
}