Skip to content

Commit

Permalink
Merge pull request #218 from hxmhlt/fix_load_protocol
Browse files Browse the repository at this point in the history
Fix:load protocol
  • Loading branch information
AlexStocks authored Sep 23, 2019
2 parents 519aee1 + 15d792c commit 95f857c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/protocol_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ func (c *ProtocolConfig) Prefix() string {
func loadProtocol(protocolsIds string, protocols map[string]*ProtocolConfig) []*ProtocolConfig {
returnProtocols := []*ProtocolConfig{}
for _, v := range strings.Split(protocolsIds, ",") {
for _, prot := range protocols {
if v == prot.Name {
for k, prot := range protocols {
if v == k {
returnProtocols = append(returnProtocols, prot)
}
}
Expand Down

0 comments on commit 95f857c

Please sign in to comment.