From 52f9a59ac157624b331fd3be823cc4e6a134f350 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 8 Jan 2014 10:10:39 +0000 Subject: [PATCH] Cleanup singleFlight a bit --- client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client.go b/client.go index 366ae8ed..415d18a0 100644 --- a/client.go +++ b/client.go @@ -105,8 +105,7 @@ func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err erro return r, rtt, err } if shared { - r1 := r.copy() - r = r1 + return r.copy(), rtt, nil } return r, rtt, nil }