Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
8695530d
Unverified
Commit
8695530d
authored
Aug 20, 2018
by
Raghav Gulati
Browse files
Change value to struct
parent
87255e4f
Changes
1
Show whitespace changes
Inline
Side-by-side
config/security.go
View file @
8695530d
...
...
@@ -61,7 +61,7 @@ func makeSecurityTransport(h host.Host, tpts []MsSecC) (security.Transport, erro
if
_
,
ok
:=
transportSet
[
tptC
.
ID
];
ok
{
return
nil
,
fmt
.
Errorf
(
"duplicate security transport: %s"
,
tptC
.
ID
)
}
transportSet
[
tptC
.
ID
]
=
tptC
transportSet
[
tptC
.
ID
]
=
struct
{}{}
}
for
_
,
tptC
:=
range
tpts
{
tpt
,
err
:=
tptC
.
SecC
(
h
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment