Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22a7f0099
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22a7f0099
Commits
51269f45
Commit
51269f45
authored
5 years ago
by
Xin.Zh
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #218 from hxmhlt/fix_load_protocol
Fix:load protocol
parents
21ddcac6
f304ea76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/protocol_config.go
+2
-2
2 additions, 2 deletions
config/protocol_config.go
with
2 additions
and
2 deletions
config/protocol_config.go
+
2
−
2
View file @
51269f45
...
...
@@ -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
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment