statesync: avoid potential race (#8494)

This commit is contained in:
Sam Kleinman
2022-05-11 15:09:41 -04:00
committed by GitHub
parent 23834b6b31
commit bdd59c892c
+1 -1
View File
@@ -388,7 +388,7 @@ func (s *stateProviderP2P) consensusParams(ctx context.Context, height int64) (t
for {
iterCount++
select {
case s.paramsSendCh <- p2p.Envelope{
case requestCh <- p2p.Envelope{
To: peer,
Message: &ssproto.ParamsRequest{
Height: uint64(height),