Skip to content

Commit ac62919

Browse files
lizhefengYutong Pei
authored andcommitted
Fix a bug in block streamer (#1701)
1 parent 4bdfa9f commit ac62919

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

api/blocklistener.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
package api
22

33
import (
4+
"go.uber.org/zap"
5+
46
"github.com/iotexproject/iotex-proto/golang/iotexapi"
57
"github.com/iotexproject/iotex-proto/golang/iotextypes"
6-
"go.uber.org/zap"
78

89
"github.com/iotexproject/iotex-core/blockchain/block"
910
"github.com/iotexproject/iotex-core/pkg/log"
@@ -41,6 +42,7 @@ func (bl *blockListener) Respond(blk *block.Block) error {
4142
zap.Error(err),
4243
)
4344
bl.errChan <- err
45+
return err
4446
}
4547
return nil
4648
}

0 commit comments

Comments
 (0)