Change value to struct

This commit is contained in:
Raghav Gulati 2018-08-20 18:17:30 -07:00
parent 87255e4ff0
commit 8695530d72
No known key found for this signature in database
GPG Key ID: EA2C73F6F7EF2701
1 changed files with 1 additions and 1 deletions

View File

@ -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)