close stream after writing in hello

This commit is contained in:
whyrusleeping 2019-07-24 15:16:47 -07:00
parent 1e10bf8a36
commit d06898e354

View File

@ -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)