Commit 90689acd authored by duanjinfei's avatar duanjinfei

add channel len log

parent 431b68b4
......@@ -44,6 +44,7 @@ func startTest() {
for {
select {
case arr := <-tranArrChan:
log.Info("tranArrChan len:", len(tranArrChan))
log.Info("-----into tranArrChan-----")
if err := transaction.BroadcastTxArr(arr, cfg); err != nil {
log.Errorf("Bath Send Tran error: %s", err)
......
......@@ -78,6 +78,7 @@ func broadcastTx(cfg *tool.Config, client ring.RingServiceClient) error {
for {
select {
case broadcastEthTxWithFromRequests := <-broadcastEthTxWithFromRequestsArr:
log.Info("broadcastEthTxWithFromRequestsArr len:", len(broadcastEthTxWithFromRequestsArr))
sendTranStartTime := time.Now()
ctx, cancel := context.WithTimeout(context.Background(), time.Second*30)
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