From d06898e35440bdc41f5188e2e50b329d31b2d72e Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Wed, 24 Jul 2019 15:16:47 -0700 Subject: [PATCH] close stream after writing in hello --- node/hello/hello.go | 1 + 1 file changed, 1 insertion(+) diff --git a/node/hello/hello.go b/node/hello/hello.go index 974d6e681..a3deb387a 100644 --- a/node/hello/hello.go +++ b/node/hello/hello.go @@ -78,6 +78,7 @@ func (hs *Service) SayHello(ctx context.Context, pid peer.ID) error { if err != nil { return err } + defer s.Close() hts := hs.cs.GetHeaviestTipSet() weight := hs.cs.Weight(hts)