Merge pull request #79 from filecoin-project/fix/hello-close
close stream after writing in hello
This commit is contained in:
commit
7ae8f31218
@ -78,6 +78,7 @@ func (hs *Service) SayHello(ctx context.Context, pid peer.ID) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
defer s.Close()
|
||||||
|
|
||||||
hts := hs.cs.GetHeaviestTipSet()
|
hts := hs.cs.GetHeaviestTipSet()
|
||||||
weight := hs.cs.Weight(hts)
|
weight := hs.cs.Weight(hts)
|
||||||
|
Loading…
Reference in New Issue
Block a user