mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-18 22:17:44 +02:00
Server should not close the stream when done
This commit is contained in:
@ -54,8 +54,6 @@ func (d *Debug) Logs(ctx context.Context, req *proto.LogRequest, stream proto.De
|
|||||||
records = d.log.Read(log.Count(int(req.Count)))
|
records = d.log.Read(log.Count(int(req.Count)))
|
||||||
}
|
}
|
||||||
|
|
||||||
defer stream.Close()
|
|
||||||
|
|
||||||
// TODO: figure out the stream later on
|
// TODO: figure out the stream later on
|
||||||
for _, record := range records {
|
for _, record := range records {
|
||||||
metadata := make(map[string]string)
|
metadata := make(map[string]string)
|
||||||
|
Reference in New Issue
Block a user