Skip to content

Commit

Permalink
Fix: Construct a new map for security params (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Mar 19, 2024
1 parent d671648 commit 79664e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions disperser/apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -600,9 +600,7 @@ func (s *DispersalServer) updateQuorumConfig(ctx context.Context) (QuorumConfig,
return QuorumConfig{}, err
}
} else {
if newConfig.SecurityParams == nil {
newConfig.SecurityParams = make(map[core.QuorumID]core.SecurityParam)
}
newConfig.SecurityParams = make(map[core.QuorumID]core.SecurityParam)
for _, sp := range securityParams {
newConfig.SecurityParams[sp.QuorumID] = sp
}
Expand Down

0 comments on commit 79664e0

Please sign in to comment.