[node] increase node message context to 30 seconds

Signed-off-by: Leo Chen <leo@harmony.one>
pull/3577/head
Leo Chen 4 years ago
parent 04776966ad
commit fe2f907adc
  1. 4
      node/node.go

@ -767,8 +767,8 @@ func (node *Node) StartPubSub() error {
case <-node.psCtx.Done(): case <-node.psCtx.Done():
return return
case m := <-msgChanConsensus: case m := <-msgChanConsensus:
// should not take more than 10 seconds to process one message // should not take more than 30 seconds to process one message
ctx, cancel := context.WithTimeout(node.psCtx, 10*time.Second) ctx, cancel := context.WithTimeout(node.psCtx, 30*time.Second)
msg := m msg := m
go func() { go func() {
defer cancel() defer cancel()

Loading…
Cancel
Save