1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

Server should not close the stream when done

This commit is contained in:
Milos Gajdos 2019-11-28 15:50:03 +00:00
parent 13d2a9ec7a
commit 612f872f76
No known key found for this signature in database
GPG Key ID: 8B31058CC55DFD4F

View File

@ -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)))
}
defer stream.Close()
// TODO: figure out the stream later on
for _, record := range records {
metadata := make(map[string]string)