From 8695530d729285f9024d514f8a5bd2c992358864 Mon Sep 17 00:00:00 2001 From: Raghav Gulati Date: Mon, 20 Aug 2018 18:17:30 -0700 Subject: [PATCH] Change value to struct --- config/security.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/security.go b/config/security.go index 0aa6989..2798fda 100644 --- a/config/security.go +++ b/config/security.go @@ -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) -- GitLab