Skip to content

Commit

Permalink
[FAB-8309] Add CLI output to clarify channel update
Browse files Browse the repository at this point in the history
This CR adds log output to the `peer channel update` command to
clarify that the update has been submitted for processing but has
not yet been validated/invalidated.

Change-Id: I3d5a6694621d9f542a4f68e8df3012a82c4f2ebb
Signed-off-by: Will Lahti <wtlahti@us.ibm.com>
  • Loading branch information
wlahti committed Feb 20, 2018
1 parent 8f16f9a commit 52b491e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion peer/channel/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,11 @@ func update(cmd *cobra.Command, args []string, cf *ChannelCmdFactory) error {
}

defer broadcastClient.Close()
return broadcastClient.Send(sCtxEnv)
err = broadcastClient.Send(sCtxEnv)
if err != nil {
return err
}

logger.Info("Successfully submitted channel update")
return nil
}

0 comments on commit 52b491e

Please sign in to comment.