Skip to content

Commit

Permalink
fix map del
Browse files Browse the repository at this point in the history
  • Loading branch information
chengzhinei committed Jul 10, 2024
1 parent d78755a commit 06268fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,6 +860,7 @@ func (c *OecConfig) SetEnableP2PIPWhitelist(value bool) {
}

func (c *OecConfig) SetConsensusIPWhitelist(value string) {
c.consensusIPWhitelist = map[string]bool{}
ipList := resolveNodeKeyWhitelist(value)
for _, ip := range ipList {
c.consensusIPWhitelist[strings.TrimSpace(ip)] = true
Expand Down

0 comments on commit 06268fc

Please sign in to comment.