Skip to content

Commit

Permalink
Merge "[FAB-2943] Event publishing failure fails block commit"
Browse files Browse the repository at this point in the history
  • Loading branch information
jimthematrix authored and Gerrit Code Review committed Apr 10, 2017
2 parents 7984725 + 458bcdf commit a076bba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions core/committer/committer_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ limitations under the License.
package committer

import (
"fmt"

"github.com/hyperledger/fabric/core/committer/txvalidator"
"github.com/hyperledger/fabric/core/ledger"
"github.com/hyperledger/fabric/events/producer"
Expand Down Expand Up @@ -65,8 +63,7 @@ func (lc *LedgerCommitter) Commit(block *common.Block) error {

// send block event *after* the block has been committed
if err := producer.SendProducerBlockEvent(block); err != nil {
logger.Errorf("Error sending block event %s", err)
return fmt.Errorf("Error sending block event %s", err)
logger.Errorf("Error publishing block %d, because: %v", block.Header.Number, err)
}

return nil
Expand Down

0 comments on commit a076bba

Please sign in to comment.