Commit 90689acd authored by duanjinfei's avatar duanjinfei

add channel len log

parent 431b68b4
...@@ -44,6 +44,7 @@ func startTest() { ...@@ -44,6 +44,7 @@ func startTest() {
for { for {
select { select {
case arr := <-tranArrChan: case arr := <-tranArrChan:
log.Info("tranArrChan len:", len(tranArrChan))
log.Info("-----into tranArrChan-----") log.Info("-----into tranArrChan-----")
if err := transaction.BroadcastTxArr(arr, cfg); err != nil { if err := transaction.BroadcastTxArr(arr, cfg); err != nil {
log.Errorf("Bath Send Tran error: %s", err) log.Errorf("Bath Send Tran error: %s", err)
......
...@@ -78,6 +78,7 @@ func broadcastTx(cfg *tool.Config, client ring.RingServiceClient) error { ...@@ -78,6 +78,7 @@ func broadcastTx(cfg *tool.Config, client ring.RingServiceClient) error {
for { for {
select { select {
case broadcastEthTxWithFromRequests := <-broadcastEthTxWithFromRequestsArr: case broadcastEthTxWithFromRequests := <-broadcastEthTxWithFromRequestsArr:
log.Info("broadcastEthTxWithFromRequestsArr len:", len(broadcastEthTxWithFromRequestsArr))
sendTranStartTime := time.Now() sendTranStartTime := time.Now()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30) ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
defer cancel() defer cancel()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment