diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-23 11:39:40 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-12-23 11:39:40 +0200 |
commit | d2db95337f633c91a7a9d7957925406e0239c452 (patch) | |
tree | 02b7cae6c3b5168782abf44c364b13a1f48e9799 /client_timing_test.go | |
parent | test URI.Update() with path containing non-ASCII chars (diff) | |
download | fasthttp-d2db95337f633c91a7a9d7957925406e0239c452.tar.gz fasthttp-d2db95337f633c91a7a9d7957925406e0239c452.tar.bz2 fasthttp-d2db95337f633c91a7a9d7957925406e0239c452.zip |
Removed 'v interface{}' hack from structs managed via sync.Pool, since it has no sense
Diffstat (limited to 'client_timing_test.go')
-rw-r--r-- | client_timing_test.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client_timing_test.go b/client_timing_test.go index f1261c7..f43821d 100644 --- a/client_timing_test.go +++ b/client_timing_test.go @@ -18,7 +18,6 @@ type fakeClientConn struct { s []byte n int ch chan struct{} - v interface{} } func (c *fakeClientConn) Write(b []byte) (int, error) { @@ -51,7 +50,7 @@ func (c *fakeClientConn) Close() error { func releaseFakeServerConn(c *fakeClientConn) { c.n = 0 - fakeClientConnPool.Put(c.v) + fakeClientConnPool.Put(c) } func acquireFakeServerConn(s []byte) *fakeClientConn { @@ -61,7 +60,6 @@ func acquireFakeServerConn(s []byte) *fakeClientConn { s: s, ch: make(chan struct{}, 1), } - c.v = c return c } return v.(*fakeClientConn) |