Commit 201a8144 authored by yacovm's avatar yacovm
Browse files

[FAB-5498] Missing RLock in onStatusChangeFactory

There is a map access that isn't protected by a lock
that was introduced in a recent commit.

Change-Id: I31f884f76aaf0ba4a6b547c66830d8cd652f3c4e
Signed-off-by: default avataryacovm <>
parent f3d0f5c9
......@@ -283,7 +283,9 @@ func (g *gossipServiceImpl) onStatusChangeFactory(chainID string, committer bloc
return func(isLeader bool) {
if isLeader {
yield := func() {
le := g.leaderElection[chainID]
logger.Info("Elected as a leader, starting delivery service for channel", chainID)
Supports Markdown
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