Change value to struct
This commit is contained in:
parent
87255e4ff0
commit
8695530d72
|
@ -61,7 +61,7 @@ func makeSecurityTransport(h host.Host, tpts []MsSecC) (security.Transport, erro
|
||||||
if _, ok := transportSet[tptC.ID]; ok {
|
if _, ok := transportSet[tptC.ID]; ok {
|
||||||
return nil, fmt.Errorf("duplicate security transport: %s", tptC.ID)
|
return nil, fmt.Errorf("duplicate security transport: %s", tptC.ID)
|
||||||
}
|
}
|
||||||
transportSet[tptC.ID] = tptC
|
transportSet[tptC.ID] = struct{}{}
|
||||||
}
|
}
|
||||||
for _, tptC := range tpts {
|
for _, tptC := range tpts {
|
||||||
tpt, err := tptC.SecC(h)
|
tpt, err := tptC.SecC(h)
|
||||||
|
|
Loading…
Reference in New Issue