mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
Use correct context for chainHeadRetrieval (#6678)
* Use correct context for chainHeadRetrieval * Merge refs/heads/master into fix-context
This commit is contained in:
parent
647599e87f
commit
62ae22e3f9
@ -226,7 +226,7 @@ func (bs *Server) StreamChainHead(_ *ptypes.Empty, stream ethpb.BeaconChain_Stre
|
||||
select {
|
||||
case event := <-stateChannel:
|
||||
if event.Type == statefeed.BlockProcessed {
|
||||
res, err := bs.chainHeadRetrieval(bs.Ctx)
|
||||
res, err := bs.chainHeadRetrieval(stream.Context())
|
||||
if err != nil {
|
||||
return status.Errorf(codes.Internal, "Could not retrieve chain head: %v", err)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user