Merge branch 'master' of https://github.com/micro/go-micro into runtime-multitenancy
This commit is contained in:
commit
c4e3f8c336
@ -1,4 +1,4 @@
|
|||||||
# Go Micro [](https://opensource.org/licenses/Apache-2.0) [](https://pkg.go.dev/github.com/micro/go-micro?tab=doc) [](https://travis-ci.org/micro/go-micro) [](https://goreportcard.com/report/github.com/micro/go-micro)
|
# Go Micro [](https://opensource.org/licenses/Apache-2.0) [](https://pkg.go.dev/github.com/micro/go-micro?tab=doc) [](https://travis-ci.org/micro/go-micro) [](https://goreportcard.com/report/github.com/micro/go-micro) <a href="https://slack.micro.mu"><img src="https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen" alt="Slack Widget"></a>
|
||||||
|
|
||||||
Go Micro is a framework for distributed systems development.
|
Go Micro is a framework for distributed systems development.
|
||||||
|
|
||||||
|
@ -130,15 +130,15 @@ func (r *rpcStream) Error() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *rpcStream) Close() error {
|
func (r *rpcStream) Close() error {
|
||||||
r.RLock()
|
r.Lock()
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-r.closed:
|
case <-r.closed:
|
||||||
r.RUnlock()
|
r.Unlock()
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
close(r.closed)
|
close(r.closed)
|
||||||
r.RUnlock()
|
r.Unlock()
|
||||||
|
|
||||||
// send the end of stream message
|
// send the end of stream message
|
||||||
if r.sendEOS {
|
if r.sendEOS {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user