Merge pull request #79 from filecoin-project/fix/hello-close

close stream after writing in hello
This commit is contained in:
Łukasz Magiera 2019-07-25 13:51:58 +02:00 committed by GitHub
commit 7ae8f31218
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)